CBitmap::GetBitmapBits

Copies the bit pattern of the attached bitmap into the specified buffer.

DWORD GetBitmapBits(
   DWORD dwCount,
   LPVOID lpBits
) const;

Parameters

  • dwCount
    The number of bytes to copy to the buffer.

  • lpBits
    Pointer to the buffer that will receive the bitmap.

Return Value

The number of bytes copied to the buffer if the method was successful; otherwise 0.

Remarks

Use CBitmap::GetBitmap to determine the required buffer size.

Requirements

Header: afxwin.h

See Also

Reference

CBitmap Class

Hierarchy Chart

CGdiObject::GetObject

GetBitmapBits

Other Resources

CBitmap Members