System.Drawing.Graphics.FillPolygon Method

Fills the interior of a polygon defined by an array of points specified by System.Drawing.Point structures using the specified fill mode.

Syntax

public void FillPolygon (Brush brush, Point[] points, System.Drawing.Drawing2D.FillMode fillMode)

Parameters

brush
System.Drawing.Brush that determines the characteristics of the fill.
points
Array of System.Drawing.Point structures that represent the vertices of the polygon to fill.
fillMode
Member of the System.Drawing.Drawing2D.FillMode enumeration that determines the style of the fill.

Remarks

Every two consecutive points in the array specify a side of the polygon. In addition, if the last point and the first point do not coincide, they specify the closing side of the polygon.

Requirements

Namespace: System.Drawing
Assembly: System.Drawing (in System.Drawing.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0