Retrieves a dimension of the specified enhanced-format metafile
#include <WinAPIGdi.au3>
_WinAPI_GetEnhMetaFileDimension ( $hEmf )
$hEmf | Handle to the enhanced metafile to retrieve dimension. |
Success: | $tagSIZE structure that contains the enhanced metafile dimension, in pixels. |
Failure: | Sets the @error flag to non-zero. |
#include <WinAPIGdi.au3>
Local $hEmf = _WinAPI_GetEnhMetaFile(@ScriptDir & '\Extras\Flag.emf')
Local $tSIZE = _WinAPI_GetEnhMetaFileDimension($hEmf)
_WinAPI_DeleteEnhMetaFile($hEmf)
ConsoleWrite(DllStructGetData($tSIZE, 'X') & ' x ' & DllStructGetData($tSIZE, 'Y') & @CRLF)