GetBitmapDimensionEx

  BOOL GetBitmapDimensionEx(hBitmap, lpDimension)    
  HBITMAP hBitmap; /* handle of bitmap */
  LPSIZE lpDimension; /* address of structure receiving dimensions */

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

Parameters

hBitmap

Identifies the bitmap.

lpDimension

Points to a SIZE structure. The dimensions are returned here.

Return Value

The return value is TRUE if the function was successful. Otherwise it is FALSE.

Comments

If no dimensions have been set, a default width and height of zero will be returned.

See Also

SetBitmapDimensionEx