This method zooms in on the area specified by the Left, Top, Right and Bottom parameters.

[Visual Basic] Public Function Zoom(Left As Integer, Top As Integer, Right As Integer, Bottom As Integer) As Boolean
[C#] public bool Zoom(int Left, int Top, int Right, int Bottom) ;

Parameters

Left
     The left coordinate of the zoom area (in pixels)

Top
     The top coordinate of the zoom area (in pixels)

Right
     The right coordinate of the zoom area (in pixels)

Bottom
     The bottom coordinate of the zoom area (in pixels)

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The Zoom method zooms (in or out) on the area specified by the above four parameters so that the area fills the ImageKit Control while maintaining the height to width aspect of the specified area. After the Zoom method has executed the DrawScaleX and DrawScaleY property values are recalculated.

Note: This method is only enabled when the image is displayed at actual size.

See Also

ImageKit Members | Newtone.ImageKit.Win.ImageKit

 

The ImageKit.NET3 is created by Newtone Corporation