ImageGear for C and C++ on Windows v20.3 - Updated
IG_dspl_device_to_image_d
API Reference Guide > Core Component API Reference > Core Component Functions Reference > Display Functions > IG_dspl_device_to_image_d

This function translates an array of points in DOUBLE float-points format from the device coordinates to the image coordinates.

Declaration:

 
Copy Code
AT_ERRCOUNT   ACCUAPI  IG_dspl_device_to_image_d(
        [IN] HIGEAR hIGear,
        [IN] DWORD dwGrpID,
        [IN] HWND hWnd,
        [IN] HDC hDC,
        [IN/OUT] LPAT_DPOINT lpPoint,
        [IN] UINT nCount
);

Arguments:

Name Type Description
hIGear HIGEAR ImageGear handle of image.
dwGrpID DWORD Identifier of the group from which to get display options.
hWnd HWND Handle of the window from which the image is drawn.
hDC HDC Handle of the device context used for drawing. This can be NULL, but if a calculation is necessary for printer device context, then you should provide the real value.
lpPoint LPAT_DPOINT Pointer to an array of points in DOUBLE float-point format that should be translated.
nCount UINT Number of elements in the lpPoint array.

Return Value:

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

Supported Raster Image Formats:

All pixel formats supported by ImageGear for C and C++.

Sample:

None

Remarks:

This function takes into account all display parameters, including the orientation and current scrolling position.

See also the function IG_dspl_image_to_device_d().
Is this page helpful?
Yes No
Thanks for your feedback.