This method combines the color data for the source and destination bitmaps using the specified mask and raster operation.
Header file: | Afxwin.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 1.0 and later |
Complete documentation: | Visual C++ documentation |
BOOL MaskBlt ( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, CBitmap& maskBitmap, int xMask, int yMask, DWORD dwRop );
The only raster operations Windows CE supports in the dwRop parameter are SRCCOPY and SRCINVERT (without a mask) and 0xCCAA0000 (with a mask).
Windows CE 1.0 only supports two bit per pixel (maximum) gray scale graphics. When performing a bit-block transfer that converts two bit-per-pixel (2bpp) to one bit-per-pixel (1bpp), Windows CE 1.0 maps the background color to white, and all other colors to black. When converting from 1bpp to 2bpp, it maps white to white and black to black, as expected.
CDC::BitBlt, CDC::GetDeviceCaps, CDC::StretchBlt