This method retrieves the image from the screen device context.

[C++Builder]   [ NativeUInt = ]imagekitcontrolname->PrintDraw->GetImageFromHdc(HDC DC, int AWidth, int AHeight, short BitCount)
[Delphi]   [ THandle = ]imagekitcontrolname.PrintDraw.GetImageFromHdc(DC: HDC; AWidth, AHeight: Integer; BitCount: Smallint)

Parameters

Name Explanation
DC The screen device context
AWidth The width of the retrieved image (in pixels)
AHeight 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) when not successful.

Explanation

The GetImageFromHdc method retrieves the image from the screen device context and returns it to the image data.

Note: Some components do not always retrieve the height and width of the actual image. In such cases there can be problems with the GetImageFromHdc method retrieving the image from the screen device context.

The ImageKit10 VCL is a product created by Newtone Corporation