网站首页  词典首页

请输入您要查询的函数:

 

术语 playenhmetafile
释义 PlayEnhMetaFile
语法:
BOOL PlayEnhMetaFile(
__in HDC hdc,
__in HENHMETAFILE hemf,
__in const RECT *lpRect
);
PlayEnhMetaFile功能
该PlayEnhMetaFile功能显示图片在指定的增强型图元文件格式存储。
参数
hdc [in]
一个句柄,的输出设备上的图片将显示设备上下文。
hemf [in]
一个句柄,增强型图元。
lpRect [in]
一个矩形结构,它包含了用于显示图像的边界矩形坐标指针。坐标逻辑单位指定。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值是零。
备注
当应用程序调用PlayEnhMetaFile功能,系统使用的增强型图元文件头相框映射到矩形图片指出的lpRect参数。 (此图可以剪切或通过设置世界输出设备的转换,然后再调用PlayEnhMetaFile旋转。)沿矩形的边缘点都包含在图片。
一个增强型图元文件图片可以通过定义裁剪比赛前增强型图元文件中的输出设备剪辑区域。
如果一个增强型图元文件包含一个可选的调色板,应用程序可以实现建立在调用PlayEnhMetaFile对输出设备的调色板的颜色一致。要检索可选的调色板,使用GetEnhMetaFilePaletteEntries功能。
增强型图元文件可以嵌入到新创建的增强和发挥调用PlayEnhMetaFile加强了对于新的增强型图元文件设备上下文源图元文件。
在输出设备方面,缔约国被保留了这一功能。任何对象创建的,但不是在增强型图元文件删除是由这个函数删除。
为了制止这种功能,应用程序可以调用另一个线程CancelDC职能终止运作。在这种情况下,函数返回FALSE。
实例
有关示例,请参阅开户增强型图元文件并显示其内容。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWingdi.h(头文件:winuser.h)
LibraryGdi32.lib
DLLGdi32.dll
参见
图元文件概述
图元文件函数
CancelDC
GetEnhMetaFileHeader
GetEnhMetaFilePaletteEntries
RECT
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年7月11日
==英文原文==PlayEnhMetaFile Function
The PlayEnhMetaFile function displays the picture stored in the specified enhanced-format metafile.
Syntax
BOOL PlayEnhMetaFile(
__in HDC hdc,
__in HENHMETAFILE hemf,
__in const RECT *lpRect
);
Parameters
hdc [in]
A handle to the device context for the output device on which the picture will appear.
hemf [in]
A handle to the enhanced metafile.
lpRect [in]
A pointer to a RECT structure that contains the coordinates of the bounding rectangle used to display the picture. The coordinates are specified in logical units.
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Remarks
When an application calls the PlayEnhMetaFile function, the system uses the picture frame in the enhanced-metafile header to map the picture onto the rectangle pointed to by the lpRect parameter. (This picture may be sheared or rotated by setting the world transform in the output device before calling PlayEnhMetaFile.) Points along the edges of the rectangle are included in the picture.
An enhanced-metafile picture can be clipped by defining the clipping region in the output device before playing the enhanced metafile.
If an enhanced metafile contains an optional palette, an application can achieve consistent colors by setting up a color palette on the output device before calling PlayEnhMetaFile. To retrieve the optional palette, use the GetEnhMetaFilePaletteEntries function.
An enhanced metafile can be embedded in a newly created enhanced metafile by calling PlayEnhMetaFile and playing the source enhanced metafile into the device context for the new enhanced metafile.
The states of the output device context are preserved by this function. Any object created but not deleted in the enhanced metafile is deleted by this function.
To stop this function, an application can call the CancelDC function from another thread to terminate the operation. In this case, the function returns FALSE.
Examples
For an example, see Opening an Enhanced Metafile and Displaying Its Contents .
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
CancelDC
GetEnhMetaFileHeader
GetEnhMetaFilePaletteEntries
RECT
Send comments about this topic to Microsoft
Build date: 7/11/2009
==原始网址==http://msdn.microsoft.com/en-us/library/dd162800(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:09