网站首页  词典首页

请输入您要查询的函数:

 

术语 getenhmetafilebits
释义 GetEnhMetaFileBits
语法:
UINT GetEnhMetaFileBits(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPBYTE lpbBuffer
);
GetEnhMetaFileBits功能
该GetEnhMetaFileBits函数检索到缓冲区中指定的增强型图元文件格式,并复制它们的内容。
参数
hemf [in]
一个句柄,增强型图元。
cbBuffer [in]
大小,以字节为缓冲区接收数据。
lpbBuffer [out]
阿一个缓冲区,它接收图元文件数据的指针。该缓冲区必须足够大,包含的数据。如果lpbBuffer为NULL,则函数返回的大小需要保存数据。
返回值
如果函数成功和缓冲区指针为NULL,则返回值是增强型图元文件大小,以字节。
如果函数成功和缓冲区指针是一个有效的指针,返回值是复制到缓冲区的字节数。
如果函数失败,返回值是零。
备注
之后,增强型图元文件位检索,它们可用于创建一个基于内存的图元文件通过调用SetEnhMetaFileBits功能。
该GetEnhMetaFileBits函数不无效增强型图元文件句柄。应用程序必须调用DeleteEnhMetaFile函数删除处理时,不再需要。
此函数检索的图元文件内容是增强格式。要检索在Windows图元文件格式的内容,使用GetWinMetaFileBits功能。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
图元文件概述
图元文件函数
DeleteEnhMetaFile
GetWinMetaFileBits
SetEnhMetaFileBits
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetEnhMetaFileBits Function
The GetEnhMetaFileBits function retrieves the contents of the specified enhanced-format metafile and copies them into a buffer.
Syntax
UINT GetEnhMetaFileBits(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPBYTE lpbBuffer
);
Parameters
hemf [in]
A handle to the enhanced metafile.
cbBuffer [in]
The size, in bytes, of the buffer to receive the data.
lpbBuffer [out]
A pointer to a buffer that receives the metafile data. The buffer must be sufficiently large to contain the data. If lpbBuffer is NULL, the function returns the size necessary to hold the data.
Return Value
If the function succeeds and the buffer pointer is NULL, the return value is the size of the enhanced metafile, in bytes.
If the function succeeds and the buffer pointer is a valid pointer, the return value is the number of bytes copied to the buffer.
If the function fails, the return value is zero.
Remarks
After the enhanced-metafile bits are retrieved, they can be used to create a memory-based metafile by calling the SetEnhMetaFileBits function.
The GetEnhMetaFileBits function does not invalidate the enhanced-metafile handle. The application must call the DeleteEnhMetaFile function to delete the handle when it is no longer needed.
The metafile contents retrieved by this function are in the enhanced format. To retrieve the metafile contents in the Windows format, use the GetWinMetaFileBits function.
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
DeleteEnhMetaFile
GetWinMetaFileBits
SetEnhMetaFileBits
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144881(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:24:18