网站首页  词典首页

请输入您要查询的函数:

 

术语 getenhmetafileheader
释义 GetEnhMetaFileHeader
语法:
UINT GetEnhMetaFileHeader(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPENHMETAHEADER lpemh
);
GetEnhMetaFileHeader功能
该GetEnhMetaFileHeader函数检索记录包含指定的增强型图元文件格式的头。
参数
hemf [in]
句柄的增强型图元的这头是要检索。
cbBuffer [in]
大小,以字节为缓冲区接收数据。只有这样,许多字节将被复制。
lpemh [out]
对一个ENHMETAHEADER结构,接收头记录指针。如果该参数为NULL,则函数返回标头记录的大小。
返回值
如果函数成功和结构的指针为NULL,则返回值的记录,包含头大小,如果结构的指针是一个有效的指针,返回值是复制的字节数。否则,它是零。
备注
一个增强型图元文件头包含了这些信息的图元文件的大小,以字节;图片的尺寸存储在图元文件,记录数在图元文件储存;的偏移量可选文字说明;任择调色板的大小,并在其上创建的图片设备的分辨率。
记录包含增强型图元文件头始终是第一个在图元文件记录。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
图元文件概述
图元文件函数
ENHMETAHEADER
PlayEnhMetaFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetEnhMetaFileHeader Function
The GetEnhMetaFileHeader function retrieves the record containing the header for the specified enhanced-format metafile.
Syntax
UINT GetEnhMetaFileHeader(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPENHMETAHEADER lpemh
);
Parameters
hemf [in]
A handle to the enhanced metafile for which the header is to be retrieved.
cbBuffer [in]
The size, in bytes, of the buffer to receive the data. Only this many bytes will be copied.
lpemh [out]
A pointer to an ENHMETAHEADER structure that receives the header record. If this parameter is NULL, the function returns the size of the header record.
Return Value
If the function succeeds and the structure pointer is NULL, the return value is the size of the record that contains the header; if the structure pointer is a valid pointer, the return value is the number of bytes copied. Otherwise, it is zero.
Remarks
An enhanced-metafile header contains such information as the metafile's size, in bytes; the dimensions of the picture stored in the metafile; the number of records stored in the metafile; the offset to the optional text description; the size of the optional palette, and the resolution of the device on which the picture was created.
The record that contains the enhanced-metafile header is always the first record in the metafile.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
See Also
Metafiles Overview
Metafile Functions
ENHMETAHEADER
PlayEnhMetaFile
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144883(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 11:30:35