网站首页  词典首页

请输入您要查询的函数:

 

术语 getwinmetafilebits
释义 GetWinMetaFileBits
语法:
UINT GetWinMetaFileBits(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPBYTE lpbBuffer,
__in INT fnMapMode,
__in HDC hdcRef
);
GetWinMetaFileBits功能
转换函数的GetWinMetaFileBits从1到Windows图元文件格式的记录和存储在指定的缓冲区的转换记录增强格式记录。
参数
hemf [in]
一个句柄,增强型图元。
cbBuffer [in]
大小,以字节为单位的缓冲区转换纪录将被复制。
lpbBuffer [out]
一个缓冲区,接收转换记录指针。如果lpbBuffer为NULL,GetWinMetaFileBits返回所需的存储转换元文件记录的字节数。
fnMapMode [in]
映射模式转换中使用图元文件。
hdcRef [in]
一个句柄,参考设备上下文。
返回值
如果函数成功和缓冲区指针为NULL,则返回值是所需要的存储字节数转换的记录,如果函数成功和缓冲区指针是一个有效的指针,返回值是在图元文件数据大小字节。
如果函数失败,返回值是零。
备注
这个函数转换成一个Windows增强型图元文件格式的图元文件图片,使其可以在一个应用程序,认识到旧的格式显示。
该系统使用参考设备上下文来确定转换图元文件的决议。
该GetWinMetaFileBits函数不无效增强型图元处理。应用程序应调用DeleteEnhMetaFile函数来释放句柄时,不再需要。
要创建一个可扩展的Windows图元文件格式,指定为fnMapMode参数MM_ANISOTROPIC。
左上角的图元文件图片的角落总是映射到设备的参考来源。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
图元文件概述
图元文件函数
DeleteEnhMetaFile
SetMapMode
SetWinMetaFileBits
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==GetWinMetaFileBits Function
The GetWinMetaFileBits function converts the enhanced-format records from a metafile into Windows-format records and stores the converted records in the specified buffer.
Syntax
UINT GetWinMetaFileBits(
__in HENHMETAFILE hemf,
__in UINT cbBuffer,
__out LPBYTE lpbBuffer,
__in INT fnMapMode,
__in HDC hdcRef
);
Parameters
hemf [in]
A handle to the enhanced metafile.
cbBuffer [in]
The size, in bytes, of the buffer into which the converted records are to be copied.
lpbBuffer [out]
A pointer to the buffer that receives the converted records. If lpbBuffer is NULL, GetWinMetaFileBits returns the number of bytes required to store the converted metafile records.
fnMapMode [in]
The mapping mode to use in the converted metafile.
hdcRef [in]
A handle to the reference device context.
Return Value
If the function succeeds and the buffer pointer is NULL, the return value is the number of bytes required to store the converted records; if the function succeeds and the buffer pointer is a valid pointer, the return value is the size of the metafile data in bytes.
If the function fails, the return value is zero.
Remarks
This function converts an enhanced metafile into a Windows-format metafile so that its picture can be displayed in an application that recognizes the older format.
The system uses the reference device context to determine the resolution of the converted metafile.
The GetWinMetaFileBits function does not invalidate the enhanced metafile handle. An application should call the DeleteEnhMetaFile function to release the handle when it is no longer needed.
To create a scalable Windows-format metafile, specify MM_ANISOTROPIC as the fnMapMode parameter.
The upper-left corner of the metafile picture is always mapped to the origin of the reference device.
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
SetMapMode
SetWinMetaFileBits
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd144952(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 13:15:38