Description
Draws a polygon.
Syntax
GpStatus WINGDIPAPI GdipDrawPolygon(
GpGraphics
*graphics,
GpPen *pen,
GDIPCONST
GpPointF *points,
INT count
);
PowerBASIC Syntax
DECLARE FUNCTION GdipDrawPolygon ( _
BYVAL graphics
AS DWORD, _
BYVAL pen AS
DWORD, _
BYREF pPoints
AS PointF, _
BYVAL count AS
LONG _
) AS LONG
Parameters
graphics
[in] Pointer to the
Graphics
object.
pen
[in] Pointer to a pen that is used to draw the
polygon.
points
[in] Pointer to an array of
PointF
structures that specify the vertices of the polygon.
count
[in] Long integer value that specifies the
number of elements in the points array.
Remarks
If the first and last coordinates in the
points
array are not identical, a line is drawn between them to close the
polygon.
|