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 "Extras\HelpFileInternals.au3"

#include <WinAPIGdi.au3>

Local $sEmf = _Extras_PathFull('Flag.emf')
Local $hEmf = _WinAPI_GetEnhMetaFile($sEmf)
Local $tSIZE = _WinAPI_GetEnhMetaFileDimension($hEmf)
_WinAPI_DeleteEnhMetaFile($hEmf)

ConsoleWrite(DllStructGetData($tSIZE, 'X') & ' x ' & DllStructGetData($tSIZE, 'Y') & @CRLF)