Description
Adds a polygon to this path.
Syntax
GpStatus WINGDIPAPI GdipAddPathPolygon(
GpPath *path,
GDIPCONST
GpPointF *points,
INT count
);
PowerBASIC Syntax
DECLARE FUNCTION GdipAddPathPolygon ( _
BYVAL path AS
DWORD, _
BYREF pPoints
AS PointF, _
BYVAL count AS
LONG _
) AS LONG
Parameters
path
[in] Pointer to a GraphicsPath
object.
points
[in] Pointer to an array of points that
specifies the vertices of the polygon.
count
[in] Long integer value that specifies the
number of elements in the points array.
Remarks
The GdipAddPathPolygon
function is similar to the GdipAddPathLine2
function. The difference is that a polygon is an intrinsically closed
figure, but a sequence of lines is not a closed figure unless you call GdipClosePathFigure. When Microsoft Windows GDI+ renders a
path, each polygon in that path is closed; that is, the last vertex of
the polygon is connected to the first vertex by a straight line.
|