Retrieves a dimension of the specified icon
#include <WinAPIIcons.au3>
_WinAPI_GetIconDimension ( $hIcon )
$hIcon | Handle to the icon to retrieve dimension. |
Success: | $tagSIZE structure that contains the icon dimension, in pixels. |
Failure: | Sets the @error flag to non-zero, call _WinAPI_GetLastError() to get extended error information. |
#include <WinAPIIcons.au3>
#include <WinAPIShellEx.au3>
Local $hIcon = _WinAPI_ShellExtractIcon(@SystemDir & '\shell32.dll', 130, 48, 48)
Local $tSIZE = _WinAPI_GetIconDimension($hIcon)
_WinAPI_DestroyIcon($hIcon)
ConsoleWrite(DllStructGetData($tSIZE, 'X') & ' x ' & DllStructGetData($tSIZE, 'Y') & @CRLF)