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 |
|
|
DLL |
|
See also
- Reference
- BP_BUFFERFORMAT
- Other Resources
- Device-Independent Bitmaps
Send comments about this topic to Microsoft
Build date: 10/27/2012