WinXDraw_Snapshot


WinXDraw_Snapshot (hWnd, x, y, hImage)

Takes a "snapshot" of a WinX Window using Auto Draw.

Parameter Description
hWnd The handle to the window to take the "snapshot" from
x The x coordinate of the upper left hand corner of the capture area
y The y coordinate of the upper left hand corner of the capture area
hImage The handle to the image to store the result

Returns

$$TRUE on success or $$FALSE on fail

Remarks

This function works by playing the Auto Draw records of a window into the bitmap. For this reason it only works with WinX windows using Auto Draw and does not capture windows which may be obscuring the source window. In fact, the source window can be hidden and this function will still work just fine.

Examples

'Draw a window onto an image
WinXDraw_Snapshot (#hMain, 0, 0, hImage)

Related Links

Images
WinXDrawImage
WinXDraw_CreateImage
WinXDraw_SaveImage
WinXDraw_GetImagePixel
WinXDraw_SetConstantAlpha
WinXDraw_SetImageChannel
WinXDraw_GetImageChannel