Bitmap, Gloadimage f, Gbitblit xdest ydest w h xsrc ysrc rop – Sensoray 2224 Windows User Manual
Page 93

Bitmap
gloadimage f
This is a wrapper function for the Windows LoadImage () function.
It loads the image into a second Bitmap/Device Context pair, g_hbmLoad and g_hdcLoad, respectively.
This second Bitmap/Device Context can then be used to copy the loaded image to the main
Bitmap/Device Context multiple times. (see gbitblit and gstretchblit)
The Width and Height of the loaded image are returned as the result of this function.
Arguments:
f = Name and path of file to load.
gbitblit xDest yDest w h xSrc ySrc Rop
This is a simple wrapper function for the Windows BitBlt () function. The source parameter for the BitBlit()
function is g_hdcLoad. This Device context, (and associated Bitmap), are loaded using the gloadimage
function.
This function can be used to write the loaded image to the destination bitmap multiple times for shifting or
rotation type of effects. See Demo.tcl
Arguments:
xDest, yDest = Destination coordinates in device context / bitmap created with gopen.
w h = Width and Height of bitmap to copy. (in pixels)
xSrc ySrc = Source coordinates in secondary device context / bitmap created with gloadimage.
Rop = Raster bit manipulation operation for copying the bitmap.
SRCCOPY (DWORD)0x00CC0020 /* dest = source */
SRCPAINT (DWORD)0x00EE0086 /* dest = source OR dest */
SRCAND (DWORD)0x008800C6 /* dest = source AND dest */
SRCINVERT (DWORD)0x00660046 /* dest = source XOR dest */
SRCERASE (DWORD)0x00440328 /* dest = source AND (NOT dest ) */
NOTSRCCOPY (DWORD)0x00330008 /* dest = (NOT source) */
NOTSRCERASE (DWORD)0x001100A6 /* dest = (NOT src) AND (NOT dest) */
MERGECOPY (DWORD)0x00C000CA /* dest = (source AND pattern) */
MERGEPAINT (DWORD)0x00BB0226 /* dest = (NOT source) OR dest */
PATCOPY (DWORD)0x00F00021 /* dest = pattern */
PATPAINT (DWORD)0x00FB0A09 /* dest = DPSnoo */
PATINVERT (DWORD)0x005A0049 /* dest = pattern XOR dest */
DSTINVERT (DWORD)0x00550009 /* dest = (NOT dest) */
BLACKNESS (DWORD)0x00000042 /* dest = BLACK */
WHITENESS (DWORD)0x00FF0062 /* dest = WHITE */
NOMIRRORBITMAP (DWORD)0x80000000 /* Do not Mirror the bitmap in this call */
CAPTUREBLT (DWORD)0x40000000 /* Include layered windows */
93