Assigns preferred dimensions to a compatible bitmap
#include <WinAPIGdi.au3>
_WinAPI_SetBitmapDimensionEx ( $hBitmap, $iWidth, $iHeight )
$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. |
Success: | True |
Failure: | False |
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.
_WinAPI_CreateDIB, _WinAPI_CreateDIBSection, _WinAPI_GetExtended
Search SetBitmapDimensionEx in MSDN Library.