ImageGear Professional DLL v18.1 for Windows
IG_dspl_zoom_get
Send Feedback
ImageGear Professional v18.1 > API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_zoom_get

Glossary Item Box

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 Handle of window where the image is drawn.
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.

Sample:

Display, MFC, Filters, ASCII, Panning, ArtX, Vector

Example:

  Copy Code
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, hWnd, &nZoomMode, &dHZoom, &dVZoom );
 ...
©2014. Accusoft Corporation. All Rights Reserved.