GetBitmapDimensionEx

2.x

  BOOL GetBitmapDimensionEx(hBitmap, lpDimension)    
  HBITMAP hBitmap; /* handle of bitmap, */  
  SIZE FAR* lpDimension; /* address of dimension structure */

The GetBitmapDimensionEx function returns the dimensions of the bitmap previously set by the SetBitmapDimensionEx function. If no dimensions have been set, a default of 0,0 will be returned.

Parameters

hBitmap

Identifies the bitmap.

lpDimension

Points to a SIZE structure to which the dimensions are returned. The SIZE structure has the following form:

typedef struct tagSIZE {
    int cx;
    int cy;
} SIZE;

For a full description of this structure, see the Microsoft Windows Programmer's Reference, Volume 3.

Return Value

The return value is nonzero if the function is successful. Otherwise, it is zero.

See Also

SetBitmapDimensionEx