The BITBLT function declaration is as follows:
BOOL BitBlt( HDC hdcDest, // handle to destination DC int nXDest, // x-coord of destination upper-left corner int nYDest, // y-coord of destination upper-left corner int nWidth, // width of destination rectangle int nHeight, // height of destination rectangle HDC hdcSrc, // handle to source DC int nXSrc, // x-coordinate of source upper-left corner int nYSrc, // y-coordinate of source upper-left corner DWORD dwRop // raster operation code);
1 BLACKNESS fill the area of the target rectangle with black.
2 DSTINVERT invert the target rectangular image.
3. MERGECOPY performs Boolean and "operations on the source rectangular image and the specified Pattern.
4 MERGEPAINT: after the source rectangular image is reversed, Boolean OR "operation is performed with the target rectangular image.
5 NOTSRCCOPY: after the source rectangular image is reversed, it is copied to the target rectangle.
6 NOTSRCERASE first Boolean OR "operations are performed on the source and target rectangular images, and then reverse the obtained images.
7. Copy the specified pattern to the target rectangle.
8. PATINVERT performs the Boolean "XOR" Operation on the specified image and the target rectangular image.
9. PATPAINT first invert the source rectangular image and perform a Boolean operation with the specified pattern brush, then, Boolean OR "SRCAND" operations are performed on the source and target rectangular images.
10 SRCCOPY: copy the source rectangular image directly to the target rectangle.
11 SRCERASE reversed the target rectangular image, and then performed Boolean and "operations on the source rectangular image.
12 SRCINVERT Boolean "XOR" operation is performed on the source and target rectangular images.
13 SRCPAINT: Boolean OR "operation is performed on the source and target rectangular images.
14 WHITENESS fills the target rectangular area with white.