获取指定增强型元文件的尺寸
#Include <WinAPIEx.au3>
_WinAPI_GetEnhMetaFileDimension( $hEmf )
$hEmf | 增强型元文件的句柄 |
成功: | 包含增强型元文件尺寸信息的$tagSIZE结构 |
失败: | 返回 0并设置@error非0 |
#Include <WinAPIEx.au3>
Opt('MustDeclareVars', 1)
Global $tSIZE, $hEmf
$hEmf = _WinAPI_GetEnhMetaFile(@ScriptDir & '\Extras\Flag.emf')
$tSIZE = _WinAPI_GetEnhMetaFileDimension($hEmf)
_WinAPI_DeleteEnhMetaFile($hEmf)
ConsoleWrite(DllStructGetData($tSIZE, 'X') & ' x ' & DllStructGetData($tSIZE, 'Y') & @CR)