GetBitmapSize

Gets size of the image if it is converted to a Windows Bitmap (BMP).

Syntax

Definition:

HRESULT GetBitmapSize(
    ULONGLONG& nBitmapSize,
    ULONG&     nBitmapWidth,
    ULONG&     nBitmapHeight
)

Parameters

Name

Type

Description

nBitmapSize

ULONGLONG&

Output parameter containing the required buffer size.

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).

GetBitmapSize 1: Return value

HRESULT