DwRop of Bitblt Functions

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.