Graphics.FillPolygon

FillPolygon(Brush, PointF[])

Fills the interior of a polygon defined by an array of points specified by PointF structures and Alternate.

public void FillPolygon(Brush brush, PointF[] points)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that represent the vertices of the polygon to fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null. -or- points is null.

See Also


FillPolygon(Brush, PointF[], FillMode)

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

public void FillPolygon(Brush brush, PointF[] points, FillMode fillMode)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPointF[]Array of PointF structures that represent the vertices of the polygon to fill.
fillModeFillModeMember of the FillMode enumeration that determines the style of the fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null. -or- points is null.

See Also


FillPolygon(Brush, Point[])

Fills the interior of a polygon defined by an array of points specified by Point structures and Alternate.

public void FillPolygon(Brush brush, Point[] points)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that represent the vertices of the polygon to fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null. -or- points is null.

See Also


FillPolygon(Brush, Point[], FillMode)

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

public void FillPolygon(Brush brush, Point[] points, FillMode fillMode)
ParameterTypeDescription
brushBrushBrush that determines the characteristics of the fill.
pointsPoint[]Array of Point structures that represent the vertices of the polygon to fill.
fillModeFillModeMember of the FillMode enumeration that determines the style of the fill.

Exceptions

exceptioncondition
ArgumentNullExceptionbrush is null. -or- points is null.

See Also