Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
GetBufferedPaintBits
Collapse the table of content
Expand the table of content

GetBufferedPaintBits function

Retrieves a pointer to the buffer bitmap if the buffer is a device-independent bitmap (DIB).

Syntax


HRESULT GetBufferedPaintBits(
        HPAINTBUFFER hBufferedPaint,
  _Out_ RGBQUAD      **ppbBuffer,
  _Out_ int          *pcxRow
);

Parameters

hBufferedPaint

Type: HPAINTBUFFER

The handle of the buffered paint context, obtained through BeginBufferedPaint.

ppbBuffer [out]

Type: RGBQUAD**

When this function returns, contains a pointer to the address of the buffer bitmap pixels.

pcxRow [out]

Type: int*

When this function returns, contains a pointer to the width, in pixels, of the buffer bitmap. This value is not necessarily equal to the buffer width. It may be larger.

Return value

Type: HRESULT

Returns S_OK if successful, or an error value otherwise. If an error occurs, ppbBuffer is set to NULL and pcxRow is set to zero.

Remarks

The number of bits per pixel depends on the pixel format passed to BeginBufferedPaint.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Uxtheme.h

DLL

UxTheme.dll

See also

Reference
BP_BUFFERFORMAT
Other Resources
Device-Independent Bitmaps

 

 

Community Additions

ADD
Show:
© 2015 Microsoft