ImageGear Professional v18.2 > API Reference Guide > Display Component API Reference > Display Component Objects > IGPageDisplay Object > IGPageDisplay Methods > ZoomToRectangle Method |
Calculates the zoom and scroll values, so that the specified rectangle is fitted to ClipRect and zoom image to the rectangle calculated. It assigns Zoom mode to IG_DSPL_ZOOM_H_FIXED | IG_DSPL_ZOOM_V_FIXED value, calculates and modifies horizontal zoom HZoom value, horizontal zoom VZoom value, and the horizontal and vertical scroll positions and returns new instance of IGDisplayZoomInfo Object with the new zoom attributes.
It does not change the value of rectangles DeviceRect, ImageRect and ClipRect.
ZoomToRectangle(hWnd As Long, pZoomRect As IGRectangle) As
IGDisplayZoomInfo
Name | Description |
---|---|
hWnd | Windows window handle used for calculations. |
pZoomRect | Rectangle to which to zoom image. |
A new instance of IGDisplayZoomInfo Object with new zoom attributes.
N/A
Display