DWORD GetBitmapBits(hBitmap,dwCount,lpBits)
This function copies the bits of the specified bitmap into the buffer that is pointed to by the lpBits parameter. The dwCount parameter specifies the number of bytes to be copied to the buffer. The GetObject function should be used to determine the correct dwCount value for the given bitmap.
Parameter | Type/Description |
hBitmap | HBITMAP Identifies the bitmap. | |
dwCount | DWORD Specifies the number of bytes to be copied. | |
lpBits | LPSTR Long pointer to the buffer that is to receive the bitmap. The bitmap is an array of bytes. The bitmap byte array conforms to a structure where horizontal scan lines are multiples of 16 bits. |
The return value specifies the actual number of bytes in the bitmap. It is zero if there is
an error.