This topic has not yet been rated - Rate this topic

GetBitmapDimensionEx function

Applies to: desktop apps only

The GetBitmapDimensionEx function retrieves the dimensions of a compatible bitmap. The retrieved dimensions must have been set by the SetBitmapDimensionEx function.

Syntax

BOOL GetBitmapDimensionEx(
  __in   HBITMAP hBitmap,
  __out  LPSIZE lpDimension
);

Parameters

hBitmap [in]

A handle to a compatible bitmap (DDB).

lpDimension [out]

A pointer to a SIZE structure to receive the bitmap dimensions. For more information, see Remarks.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

The function returns a data structure that contains fields for the height and width of the bitmap, in .01-mm units. If those dimensions have not yet been set, the structure that is returned will have zeros in those fields.

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wingdi.h (include Windows.h)

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Bitmaps Overview
Bitmap Functions
SetBitmapDimensionEx
SIZE

 

 

Send comments about this topic to Microsoft

Build date: 3/7/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ