DWORD SetBitmapDimension(hbmp, nWidth, nHeight) | ||||
HBITMAP hbmp; | /* handle of bitmap, */ | |||
int nWidth; | /* bitmap width, */ | |||
int nHeight; | /* bitmap height, */ |
The SetBitmapDimension function assigns a width and height to a bitmap, in 0.1-millimeter units. The graphics device interface (GDI) does not use these values except to return them when an application calls the GetBitmapDimension function.
hbmp
Identifies the bitmap.
nWidth
Specifies the bitmap width, in 0.1-millimeter units.
nHeight
Specifies the bitmap height, in 0.1-millimeter units.
The return value is the dimensions of the previous bitmap, in 0.1-millimeter units, if the function is successful. The low-order word contains the previous width; the high-order word contains the previous height.