网站首页  词典首页

请输入您要查询的函数:

 

术语 setwinmetafilebits
释义 SetWinMetaFileBits
语法:
HENHMETAFILE SetWinMetaFileBits(
__in UINT cbBuffer,
__in const BYTE *lpbBuffer,
__in HDC hdcRef,
__in const METAFILEPICT *lpmfp
);
SetWinMetaFileBits功能
转换函数的SetWinMetaFileBits从旧的Windows图元文件格式的新的增强型格式并存储在内存中的新图元文件。
参数
cbBuffer [in]
大小,以字节的缓冲区包含Windows格式图元文件。
lpbBuffer [in]
一个缓冲区,其中包含的Windows图元文件格式的数据指针。 (这是假设数据是通过使用GetMetaFileBitsEx或GetWinMetaFileBits函数获得。)
hdcRef [in]
一个句柄,引用设备上下文。
lpmfp [in]
一个 METAFILEPICT结构,它包含了图元文件图片的大小和建议的映射模式时使用的图片创建的指针。
返回值
如果函数成功,返回值是一个句柄基于内存的增强型图元。
如果函数失败,返回值为NULL。
备注
Windows使用参考设备方面的决议,数据和METAFILEPICT结构中的数据规模图片。如果hdcRef参数为NULL,系统使用当前输出设备的分辨率的数据。如果lpmfp参数为NULL,系统使用MM_ANISOTROPIC映射模式,以规模的图片,使之符合整个器件表面。该METAFILEPICT羟甲基糠醛的成员结构不使用。
当应用程序不再需要增强型图元文件句柄,它应该删除调用DeleteEnhMetaFile函数。
返回的句柄此功能可以与其他增强型图元文件的功能使用。
如果参考设备上下文是不相同的图元文件在最初创建,一些GDI函数使用设备单位不得制定正确的图片设备。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
图元文件概述
图元文件函数
DeleteEnhMetaFile
GetWinMetaFileBits
GetMetaFileBitsEx
METAFILEPICT
PlayEnhMetaFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==SetWinMetaFileBits Function
The SetWinMetaFileBits function converts a metafile from the older Windows format to the new enhanced format and stores the new metafile in memory.
Syntax
HENHMETAFILE SetWinMetaFileBits(
__in UINT cbBuffer,
__in const BYTE *lpbBuffer,
__in HDC hdcRef,
__in const METAFILEPICT *lpmfp
);
Parameters
cbBuffer [in]
The size, in bytes, of the buffer that contains the Windows-format metafile.
lpbBuffer [in]
A pointer to a buffer that contains the Windows-format metafile data. (It is assumed that the data was obtained by using the GetMetaFileBitsEx or GetWinMetaFileBits function.)
hdcRef [in]
A handle to a reference device context.
lpmfp [in]
A pointer to a METAFILEPICT structure that contains the suggested size of the metafile picture and the mapping mode that was used when the picture was created.
Return Value
If the function succeeds, the return value is a handle to a memory-based enhanced metafile.
If the function fails, the return value is NULL.
Remarks
Windows uses the reference device context's resolution data and the data in the METAFILEPICT structure to scale a picture. If the hdcRef parameter is NULL, the system uses resolution data for the current output device. If the lpmfp parameter is NULL, the system uses the MM_ANISOTROPIC mapping mode to scale the picture so that it fits the entire device surface. The hMF member of the METAFILEPICT structure is not used.
When the application no longer needs the enhanced metafile handle, it should delete it by calling the DeleteEnhMetaFile function.
The handle returned by this function can be used with other enhanced-metafile functions.
If the reference device context is not identical to the device in which the metafile was originally created, some GDI functions that use device units may not draw the picture correctly.
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
GetMetaFileBitsEx
METAFILEPICT
PlayEnhMetaFile
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd145103(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:17:05