Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

GetBitmapBits function

The GetBitmapBits function copies the bitmap bits of a specified device-dependent bitmap into a buffer.

Note  This function is provided only for compatibility with 16-bit versions of Windows. Applications should use the GetDIBits function.

Syntax


LONG GetBitmapBits(
  _In_   HBITMAP hbmp,
  _In_   LONG cbBuffer,
  _Out_  LPVOID lpvBits
);

Parameters

hbmp [in]

A handle to the device-dependent bitmap.

cbBuffer [in]

The number of bytes to copy from the bitmap into the buffer.

lpvBits [out]

A pointer to a buffer to receive the bitmap bits. The bits are stored as an array of byte values.

Return value

If the function succeeds, the return value is the number of bytes copied to the buffer.

If the function fails, the return value is zero.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Bitmaps Overview
Bitmap Functions

 

 

Community Additions

Show:
© 2014 Microsoft