Microsoft Foundation Classes (mfc.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
CBitmap::GetBitmapBits
CBitmap                                     Up Contents Index Back
──Microsoft Foundation Classes──────────────────────────────────────────────
 
  DWORD GetBitmapBits( DWORD dwCount, LPSTR lpBits ) const;
 
  Parameter   Description
 
  <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.
 
  Remarks
 
  Copies the bit pattern of the CBitmap object into the buffer that is
  pointed to by <lpBits>. The <dwCount> parameter specifies the number of
  bytes to be copied to the buffer. Use GetObject to determine the
  correct <dwCount> value for the given bitmap.
 
  Return Value
 
  The actual number of bytes in the bitmap, or 0 if there is an error.
 
  See Also
 
  CGdiObject::GetObject, ::GetBitmapBits
 
 
                                     -♦-