You’re viewing outdated documentation. View the latest Graphics Mill documentation.

GdiGraphics.DrawPolygon Method (Pen, PointF[])

Applies to: Graphics Mill 5.5, 3.x-5.x (may differ) · Archived documentation

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