Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.