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

GdipAddPathPolygonI

Previous pageReturn to chapter overviewNext page

描述

 

将多边形添加到此路径。

 

C++ 语法

 

GpStatus WINGDIPAPI GdipAddPathPolygonI(

   GpPath *path,

   GDIPCONST GpPoint *points,

   INT count

);

 

PowerBASIC 语法

 

FUNCTION GdipAddPathPolygonI ( _

   BYVAL path AS DWORD, _

   BYREF pPoints AS PointL, _

   BYVAL count AS LONG _

) AS LONG

 

参数

 

path

 

[in]指向GraphicsPath对象的指针。

 

points

 

[in]指向指定多边形顶点的点数组的指针。

 

count

 

[in]指定点数组中元素数量的长整型值。

 

返回值

 

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

 

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

 

备注

 

GdipAddPathPolygon功能类似于GdipAddPathLine2I功能。不同之处在于,多边形是本质上闭合的图形,但是除非您调用GdipClosePathFigure,否则一系列线条不是闭合图形。当Microsoft Windows GDI +呈现路径时,该路径中的每个多边形都将关闭;也就是说,多边形的最后一个顶点通过直线连接到第一个顶点。