GetBitmapImage

Export the image as a Windows Bitmap (BMP) into a given buffer.

Syntax

Definition:

HRESULT GetBitmapImage(
    ULONGLONG& nBitmapSize,
    PVOID      pDestBuffer,
    ULONG&     nBitmapWidth,
    ULONG&     nBitmapHeight
)

Parameters

Name

Type

Description

nBitmapSize

ULONGLONG&

Maximum buffer size (in) and actual buffer size (out).

pDestBuffer

PVOID

Pointer to the destination buffer.

nBitmapWidth

ULONG&

Desired width or 0 to keep the original width (in) and actual width (out).

nBitmapHeight

ULONG&

Desired height or 0 to keep the original height (in) and actual height (out).

GetBitmapImage 1: Return value

HRESULT