LONG GetBitmapBits(hbmp, cbBuffer, lpvBits) | |||||
HBITMAP hbmp; | /* handle of bitmap | */ | |||
LONG cbBuffer; | /* number of bytes to copy to buffer | */ | |||
LPVOID lpvBits; | /* address of buffer for bitmap bits | */ |
The GetBitmapBits function copies the bits of the specified bitmap into a buffer.
This function is included only for compatibility purposes. New Win32 applications should use the GetDIBits function.
hbmp
Identifies the bitmap.
cbBuffer
Specifies the number of bytes to be copied.
lpvBits
Points to the buffer that receives the bitmap. The bitmap is an array of bytes.
The return value specifies the actual number of bytes in the bitmap if the function is successful. Otherwise, it is zero.
GetDIBits