This member function initializes a device-dependent memory bitmap with the specified width, height, and bit pattern.
BOOL CreateBitmap ( int nWidth, int nHeight, UINT nPlanes, UINT nBitcount, const void* lpBits );
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
Because Windows CE 1.0 only supports gray scale bitmaps, you have to set the nPlanes parameter to 1 and the nBitCountl parameter to either 1 or 2 if you are targeting a Windows CE 1.0 platform.
CBitmap Overview, CBitmap Member Functions, Graphical Drawing Object Classes, CDC::SelectObject, CGdiObject::DeleteObject, CDC::BitBlt