GetBitmapDimension

2.x

  DWORD GetBitmapDimension(hbm)    
  HBITMAP hbm; /* handle of bitmap, */  

The GetBitmapDimension function returns the width and height of the specified bitmap. The height and width is assumed to have been set by the SetBitmapDimension function.

Parameters

hbm

Identifies the bitmap.

Return Value

The low-order word of the return value contains the bitmap width, in tenths of a millimeter, if the function is successful; the high-order word contains the height. If the bitmap width and height have not been set by using the SetBitmapDimension function, the return value is zero.

See Also

SetBitmapDimension