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

GdiGraphics.FillPolygon Method (Brush, PointF[], FillMode)

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(), _
	fillMode As FillMode _
)
C#
public void FillPolygon(
	Brush brush,
	PointF[] points,
	FillMode fillMode
)

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.
fillMode

Type: System.Drawing.Drawing2D.FillMode

FillMode value specifying fill mode used to fill the polygon (how to treat self-intersections).

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.

See Also

Reference