Function Reference


_WinAPI_SetBitmapDimensionEx

Assigns preferred dimensions to a compatible bitmap

#include <WinAPIGdi.au3>
_WinAPI_SetBitmapDimensionEx ( $hBitmap, $iWidth, $iHeight )

Parameters

$hBitmap Handle to the bitmap. This bitmap cannot be a DIB-section bitmap.
$iWidth The width, in 0.1-millimeter units, of the bitmap.
$iHeight The height, in 0.1-millimeter units, of the bitmap.

Return Value

Success: True
Failure: False

Remarks

The bitmap cannot be a DIB section, which is a bitmap created by the _WinAPI_CreateDIB() or _WinAPI_CreateDIBSection()
functions. If the bitmap is a DIB section, the _WinAPI_SetBitmapDimensionEx() function fails.

Call _WinAPI_GetExtended() to retrieve a $tagSIZE structure containing the previous dimensions of the bitmap.

Related

_WinAPI_CreateDIB, _WinAPI_CreateDIBSection, _WinAPI_GetExtended

See Also

Search SetBitmapDimensionEx in MSDN Library.