TouchToolKit for WinForms | ComponentOne
Zoom Policies / Zoom Policies for Standard Controls / PictureBoxZoomPolicy
In This Topic
    PictureBoxZoomPolicy
    In This Topic

    PictureBoxZoomPolicy improves the zoom result when the PictureBox.SizeMode property isn’t set to Zoom and the ZoomFactor property is bigger than 1f.

    Initial ZoomFactor is 100%, as shown below:

     

    picture box initially

     

    Note: PictureBox’s BackColor is AliceBlue.

    To see how the built-in PictureBoxZoomPolicy works, complete the following:

    1. Add a C1Zoom component.
    2. Add a PictureBox control to your form.
    3. Add in image in the PictureBox control.
    4. Click on C1Zoom’s smart tag anchor and select Edit Zoom Policies. Notice the PictureBoxZoomPolicy Enabled property is set to True by default.
    5. Run the project and observe the PictureBox with the PictureBoxZoomPolicy.
    6. Close the Form.
    7. Set the PictureBoxZoomPolicy Enabled property to False.
    8. Run the project and observe the PictureBox control without the PictureBoxZoomPolicy.

    The following table illustrates the difference between enabling and disabling the PictureBoxZoomPolicy. Note that the ZoomFactor is set to 120% by default.

     

    Without ZoomPolicy

    With ZoomPolicy

    shows picturebox without zoom policy

    shows picturebox with zoom policy