GetBufferedPaintBits function
Applies to: desktop apps only
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 |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
|
DLL |
|
See also
- Reference
- BP_BUFFERFORMAT
- Other Resources
- Device-Independent Bitmaps
Send comments about this topic to Microsoft
Build date: 3/6/2012