This function retrieves the image from the screen device context.

[C++Builder]     BOOL IKGetDevModeInfo(HANDLE hDevMode, PTR_IKPRINT_DEVMODEINFO DevModeInfo);
[Delphi]         function IKGetDevModeInfo(hDevMode: THandle; var DevModeInfo: IKPRINT_DEVMODEINFO): LongBool;

Parameters

Name Explanation
hDC The screen device context
Width The width of the retrieved image (in pixels)
Height The height of the retrieved image (in pixels)
BitCount The number of bits per pixels in the image you want to create

Return Value

Returns the image handle of the raster image if successful. Returns NULL (0) if unsuccessful.

Explanation

The IKGetImageFromHdc function retrieves the image from the screen device context and returns it to the image data.

Note: Some components such as a PictureBox, do not always retrieve the height and width of the actual image. In such cases there can be problems with the IKGetImageFromHdc function retrieving the image from the screen device context.

The ImageKit10 VCL is a product created by Newtone Corporation