Function Reference


_WinAPI_GetIconDimension

Retrieves a dimension of the specified icon

#include <WinAPIGdi.au3>
_WinAPI_GetIconDimension ( $hIcon )

Parameters

$hIcon Handle to the icon to retrieve dimension.

Return Value

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.

Example

#include <WinAPIGdi.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)