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

GdiGraphics.FillPolygon Method (Brush, PointF[])

Fills a polygon.

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

Syntax

Visual Basic
Public Sub FillPolygon ( _
	brush As Brush, _
	points As PointF() _
)
C#
public void FillPolygon(
	Brush brush,
	PointF[] points
)

Parameters

brush

Type: Aurigma.GraphicsMill.Drawing.Brush

Brush object which is used to fill 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 outline the polygon, use DrawPolygon(Pen, PointF[]) method.

By default it uses Alternate fill mode.

See Also

Reference