Funktionreferenz


_WinAPI_GetEnhMetaFileDimension


Retrieves a dimension of the specified enhanced-format metafile

#include <WinAPIGdi.au3>
_WinAPI_GetEnhMetaFileDimension ( $hEmf )

Parameter

$hEmf Handle to the enhanced metafile to retrieve dimension.

Rückgabewert

Success: $tagSIZE structure that contains the enhanced metafile dimension, in pixels.
Failure: Sets the @error flag to non-zero.

Bemerkungen

None.

Beispiel

#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)