ImageGear Professional v18 for Mac
IG_dspl_zoom_get

This function returns the current zoom values.

Declaration:

 
Copy Code
AT_ERRCOUNT   ACCUAPI  IG_dspl_zoom_get(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] HWND hWnd,
        [OUT] LPAT_MODE lpnZoomMode,
        [OUT] LPDOUBLE lpdblHZoom,
        [OUT] LPDOUBLE lpdblVZoom
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of the group from which to obtain zoom parameters.
hWnd HWND Pointer to NSView or NSScrollView object where image is drawn. Pointer must be casted to non-retainable HWND type with (__bridge HWND) operator.
lpnZoomMode LPAT_MODE Pointer to where ZoomMode is to be received. If NULL, then this parameter is ignored.
lpdblHZoom LPDOUBLE Where to return the calculated horizontal zoom value. This value is always calculated whether or not the horizontal zoom is fixed.
lpdblVZoom LPDOUBLE Where to return the calculated vertical zoom value. This value is always calculated whether or not the vertical zoom is fixed.

Return Value:

Returns the number of ImageGear errors that occurred during this function call.

Supported Raster Image Formats:

All pixel formats supported by ImageGear Professional.

Example:

 
Copy Code
NSView* nsView = self;
HIGEAR hIGear; /* HIGEAR handle of image */
DWORD nGrpID; /* display group identifier */
AT_MODE nZoomMode; /* zoom mode */
DOUBLE dHZoom; /* horizontal zoom value */
DOUBLE dVZoom; /* vertical zoom value */
...
IG_dspl_zoom_get( hIGear, nGrpID, (__bridge HWND)nsView, &nZoomMode, &dHZoom, &dVZoom );
...

 

 


©2016. Accusoft Corporation. All Rights Reserved.

Send Feedback