勇芳软件工作室.汉化:  GDI+ Flat API > Graphics Functions >

GdipEnumerateMetafileSrcRectDestPoints

Previous pageReturn to chapter overviewNext page

描述

 

调用指定图元文件中每个记录的应用程序定义的回调函数。您可以使用此函数通过在回调函数中调用GdipPlayMetafileRecord来显示图元文件。

 

C++ 语法

 

GpStatus WINGDIPAPI GdipEnumerateMetafileSrcRectDestPoints(

   GpGraphics * graphics,

   GDIPCONST GpMetafile * metafile,

   GDIPCONST PointF * destPoints,

   INT count,

   GDIPCONST RectF & srcRect,

   Unit srcUnit,

   EnumerateMetafileProc callback,

   VOID * callbackData,

   GDIPCONST GpImageAttributes * imageAttributes

);

 

PowerBASIC 语法

 

FUNCTION GdipEnumerateMetafileSrcRectDestPoints ( _

   BYVAL graphics AS DWORD, _

   BYVAL metafile AS DWORD, _

   BYREF destPoints AS PointF, _

   BYVAL count AS LONG, _

   BYREF srcRect AS RECTF, _

   BYVAL srcUnit AS LONG, _

   BYVAL pcallback AS DWORD, _

   BYVAL callbackData AS DWORD, _

   BYVAL imageAttributes AS DWORD _

) AS LONG

 

参数

 

graphics

 

[in]指向图像对象的指针。

 

metafile

 

[in]指向要枚举的图元文件的指针。

 

destpoints

 

[in]指向目标点数组的指针。这是一个三点阵列,用于定义显示的图元文件的目标平行四边形。

 

count

 

[in]长整数值,用于指定destPoints数组中的点数。

 

srcRect

 

[in]引用一个矩形,指定显示的图元文件的一部分。

 

srcUnit

 

[in]单位枚举的元素,用于指定源矩??形的度量单位。

 

callback

 

[in]指向应用程序定义的回调函数的指针。回调函数的原型在Gdiplustypes.inc中给出。

 

callbackData

 

[in]指向传递给回调函数的数据块的指针。默认值为NULL。

 

imageAttributes

 

[in]指向ImageAttributes对象的指针,用于指定显示的图元文件的颜色调整。默认值为NULL。

 

返回值

 

如果函数成功,则返回Ok,它是状态枚举的一个元素。

 

如果函数失败,它返回状态枚举的其他元素之一。