This documentation is for the old version. Go to the latest Graphics Mill docs

GdiGraphics.DrawPolygon Method (Pen, PointF[])

Draws a polygon.

Namespace: Aurigma.GraphicsMill.Drawing
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

Visual Basic
Public Sub DrawPolygon ( _
	pen As Pen, _
	points As PointF() _
)
C#
public void DrawPolygon(
	Pen pen,
	PointF[] points
)

Parameters

pen

Type: Aurigma.GraphicsMill.Drawing.Pen

Pen object which is used to outline a polygon.
points

Type: System.Drawing.PointF []

Array of coordinates of the polygon vertices.

Remarks

Polyline can be treated as closed polyline, where last point is connected with the first one.

All the coordinates are measured in units specified with Unit property.

To fill the polygon, use FillPolygon(Brush, PointF[], FillMode) method.

See Also

Reference