Function Reference


_WinAPI_GetEnhMetaFileDimension

Retrieves a dimension of the specified enhanced-format metafile

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

Parameters

$hEmf Handle to the enhanced metafile to retrieve dimension.

Return Value

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

Example

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