LONG GetBitmapBits(hbm, cbBuffer, lpvBits) | |||||
HBITMAP hbm; | /* handle of bitmap, */ | ||||
LONG cbBuffer; | /* number of bytes to copy to buffer | */ | |||
void FAR* lpvBits; | /* address of buffer for bitmap bits | */ |
The GetBitmapBits function copies the bits of the specified bitmap into a buffer.
hbm
Identifies the bitmap.
cbBuffer
Specifies the number of bytes to be copied.
lpvBits
Points to the buffer that is to receive the bitmap. The bitmap is an array of bytes. This array conforms to a structure in which horizontal scan lines are multiples of 16 bits.
The return value specifies the number of bytes in the bitmap if the function is successful. It is zero if there is an error.
An application can use the GetObject function to determine the number of bytes to copy into the buffer pointed to by the lpvBits parameter.