网站首页  词典首页

请输入您要查询的函数:

 

术语 createmetafile
释义 CreateMetaFile
语法:
HDC CreateMetaFile(
__in LPCTSTR lpszFile
);
CreateMetaFile功能
该CreateMetaFile函数创建一个为Windows设备上下文格式图元文件。
注意:此功能仅提供兼容的Windows图元文件格式。增强型图元文件格式,提供卓越的功能,并建议新的应用。对于一个增强型图元文件格式,相应的功能是CreateEnhMetaFile。
参数
lpszFile [in]
一个为Windows文件名格式图元文件要创建的指针。如果该参数为NULL,Windows的内存图元文件格式为基础,其内容是丧失了使用功能的DeleteMetaFile时被删除。
返回值
如果函数成功,返回值是一个句柄为Windows设备上下文格式图元文件。
如果函数失败,返回值为NULL。
备注
凡文本参数必须使用Unicode字符作为宽字符函数CreateMetaFile功能。凡文本参数必须使用Windows字符集,文字的使用功能,作为一个ANSI此功能。
CreateMetaFile是基于Windows图元文件格式的功能。此功能只支持16的应用程序,这是在Windows中列出位Windows图元文件格式。它不记录或播放,如PolyBezier,它们并不属于16位Windows GDI函数。
该设备上下文这个函数创建可用于记录在Windows GDI的输出功能,图元文件格式。它不能用于诸如GetTextColor GDI的查询功能。当设备上下文与一个GDI输出函数使用该函数的返回值变为TRUE,如果记录的功能,否则返回FALSE。当一个对象是使用SelectObject函数选择,只有对象的副本记录。对象仍属于该应用程序。
要创建一个可扩展的Windows图元文件格式,记录在MM_ANISOTROPIC映射模式图形输出。该文件不能包含函数修改视起源和程度,也不能包含的设备,如SelectClipRgn功能相关的函数。制作完成后,Windows图元文件可以缩放和所提供的定义,然后播放它的口的起源和图片的程度的任何输出设备的格式。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode和ANSI namesCreateMetaFileW(Unicode)和CreateMetaFileA(ANSI)的
参见
图元文件概述
图元文件函数
CloseMetaFile
CreateEnhMetaFile
DeleteMetaFile
GetTextColor
SelectClipRgn
SelectObject
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==CreateMetaFile Function
The CreateMetaFile function creates a device context for a Windows-format metafile.
Note This function is provided only for compatibility with Windows-format metafiles. Enhanced-format metafiles provide superior functionality and are recommended for new applications. The corresponding function for an enhanced-format metafile is CreateEnhMetaFile .
Syntax
HDC CreateMetaFile(
__in LPCTSTR lpszFile
);
Parameters
lpszFile [in]
A pointer to the file name for the Windows-format metafile to be created. If this parameter is NULL, the Windows-format metafile is memory based and its contents are lost when it is deleted by using the DeleteMetaFile function.
Return Value
If the function succeeds, the return value is a handle to the device context for the Windows-format metafile.
If the function fails, the return value is NULL.
Remarks
Where text arguments must use Unicode characters, use the CreateMetaFile function as a wide-character function. Where text arguments must use characters from the Windows character set, use this function as an ANSI function.
CreateMetaFile is a Windows-format metafile function. This function supports only 16-bit Windows-based applications, which are listed in Windows-Format Metafiles . It does not record or play back GDI functions such as PolyBezier , which were not part of 16-bit Windows.
The device context created by this function can be used to record GDI output functions in a Windows-format metafile. It cannot be used with GDI query functions such as GetTextColor . When the device context is used with a GDI output function, the return value of that function becomes TRUE if the function is recorded and FALSE otherwise. When an object is selected by using the SelectObject function, only a copy of the object is recorded. The object still belongs to the application.
To create a scalable Windows-format metafile, record the graphics output in the MM_ANISOTROPIC mapping mode. The file cannot contain functions that modify the viewport origin and extents, nor can it contain device-dependent functions such as the SelectClipRgn function. Once created, the Windows metafile can be scaled and rendered to any output device-format by defining the viewport origin and extents of the picture before playing it.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWingdi.h (include Windows.h)
LibraryGdi32.lib
DLLGdi32.dll
Unicode and ANSI namesCreateMetaFileW (Unicode) and CreateMetaFileA (ANSI)
See Also
Metafiles Overview
Metafile Functions
CloseMetaFile
CreateEnhMetaFile
DeleteMetaFile
GetTextColor
SelectClipRgn
SelectObject
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd183506(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:25:57