This method displays the image in a window using the window handle.

[C++Builder]   [ bool = ]imagekitcontrolname->PrintDraw->ImageOutToHwnd(HWND Wnd, NativeUInt AHandle, TColor AColor, bool Aspect, bool DXFBlack)
[Delphi]   [ Boolean = ]imagekitcontrolname.PrintDraw.ImageOutToHwnd(Wnd: HWND; AHandle: THandle; AColor: TColor; Aspect: Boolean; DXFBlack: Boolean)

Parameters

Name Explanation
Wnd The window handle
AHandle The image handle of the raster or vector image
AColor Sets the background color of the window
Aspect Maintains the height to width ratio [True: Ratio maintained, False: Ratio not maintained]
DXFBlack In DXF images only, this sets black to white and white to black. [True: Black and white are exchanged, False: Black and white are not exchanged]

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The ImageOutToHwnd method displays the image in a window using the window handle. If the image does not fit within the window's canvas the image will be scaled to fit. If the Aspect parameter is False, the image will be displayed within the window canvas as it is, i.e. the height to width ratio will not be maintained. If the Aspect parameter is True, the image will be displayed within the window canvas with the height to width ratio maintained. To set the background color of the window, enter the appropriate constants (clRed, etc.) or RGB (red, green, blue) values in the AColor parameter.

This method can draw in the following designated objects: screen only.

 

The ImageKit10 VCL is a product created by Newtone Corporation