Retrieves a dimension of the specified bitmap
#include <WinAPIGdi.au3>
_WinAPI_GetBitmapDimension ( $hBitmap )
$hBitmap | Handle to the bitmap to retrieve dimension. |
Success: | $tagSIZE structure that contains the bitmap dimension, in pixels. |
Failure: | Sets the @error flag to non-zero. |
#include <WinAPIGdi.au3>
#include <WinAPIHObj.au3>
#include <WinAPIRes.au3>
Local $hBitmap = _WinAPI_LoadImage(0, @ScriptDir & '\Extras\AutoIt.bmp', $IMAGE_BITMAP, 0, 0, $LR_LOADFROMFILE)
Local $tSIZE = _WinAPI_GetBitmapDimension($hBitmap)
_WinAPI_DeleteObject($hBitmap)
ConsoleWrite(DllStructGetData($tSIZE, 'X') & ' x ' & DllStructGetData($tSIZE, 'Y') & @CRLF)