ImageGear Professional for Windows ActiveX
ZoomToRectangle Method

Description:

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.

Syntax:

      ZoomToRectangle(hWnd As Long, pZoomRect As IGRectangle) As
IGDisplayZoomInfo

Parameters:

Name Description
hWnd Windows window handle used for calculations.
pZoomRect Rectangle to which to zoom image.

Return Value:

A new instance of IGDisplayZoomInfo Object with new zoom attributes.

Bits Per Pixel:

N/A

Sample:

Display

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback