CDC::BitBlt

This member function copies a bitmap from the source device context to the current device context.

Syntax

BOOL BitBlt ( int x, int y, int nWidth, int nHeight, CDC* pSrcDC, int xSrc, int ySrc, DWORD dwRop );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

Remarks

Windows CE only supports the following raster operations in the dwRop parameter.

SRCAND

SRCCOPY

SRCINVERT

SRCPAINT

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.

See Also

CDC Overview, CDC Member Functions, Graphical Drawing Classes, CDC::GetDeviceCaps, CDC::PatBlt, CDC::SetTextColor, CDC::StretchBlt