SetBitmapDimension

Syntax

DWORD SetBitmapDimension(hBitmap,X,Y)

This function assigns a width and height to a bitmap in 0.1-millimeter units. These values are not used internally by GDI; the GetBitmapDimension function can be used to retrieve them.

Parameter Type/Description  

hBitmap HANDLE Identifies the bitmap.  
X int Specifies the width of the bitmap (in 0.1-millimeter units).  
Y int Specifies the height of the bitmap (in 0.1-millimeter units).  

Return Value

The return value specifies the previous bitmap dimensions. Height is in the high-order word, and width is in the low-order word.