Condividi tramite


CBitmap::GetBitmapBits

Copies the bit pattern of the CBitmap object into the buffer that is pointed to by lpBits.

DWORD GetBitmapBits(
   DWORD dwCount,
   LPVOID lpBits 
) const;

Parameters

  • dwCount
    Specifies the number of bytes to be copied.

  • lpBits
    Points 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.

Return Value

The actual number of bytes in the bitmap, or 0 if there is an error.

Remarks

The dwCount parameter specifies the number of bytes to be copied to the buffer. Use CGdiObject::GetObject to determine the correct dwCount value for the given bitmap.

Requirements

Header: afxwin.h

See Also

Concepts

CBitmap Class

CBitmap Members

Hierarchy Chart

CGdiObject::GetObject

GetBitmapBits