[]
        
(Showing Draft Content)

GrapeCity.Documents.Drawing.GcGraphics.FillPolygon

FillPolygon Method

FillPolygon(PointF[], Color, FillMode)

Fills a polygon specified by an array of points, using a specified color and fill mode.

Declaration
public void FillPolygon(PointF[] points, Color color, FillMode fillMode = FillMode.Alternate)
Public Sub FillPolygon(points As PointF(), color As Color, Optional fillMode As FillMode = FillMode.Alternate)
Parameters
Type Name Description
PointF[] points

An array of points specifying the polygon.

Color color

The fill color.

FillMode fillMode

The fill mode (alternate by default).

FillPolygon(PointF[], Brush, FillMode, RectangleF?, Matrix3x2?)

Fills a polygon specified by an array of points, using a specified brush and fill mode.

Declaration
public void FillPolygon(PointF[] points, Brush brush, FillMode fillMode = FillMode.Alternate, RectangleF? brushBounds = null, Matrix3x2? brushTransform = null)
Public Sub FillPolygon(points As PointF(), brush As Brush, Optional fillMode As FillMode = FillMode.Alternate, Optional brushBounds As RectangleF? = Nothing, Optional brushTransform As Matrix3x2? = Nothing)
Parameters
Type Name Description
PointF[] points

An array of points specifying the polygon.

Brush brush

The fill brush.

FillMode fillMode

The fill mode (alternate by default).

RectangleF? brushBounds

The optional bounds for a gradient brush.

Matrix3x2? brushTransform

The transformation applied to the brush.

FillPolygon(Quadrilateral, Color)

Fills a polygon specified by an array of points, using a specified color and fill mode.

Declaration
public void FillPolygon(Quadrilateral quadrilateral, Color color)
Public Sub FillPolygon(quadrilateral As Quadrilateral, color As Color)
Parameters
Type Name Description
Quadrilateral quadrilateral

A quadrilateral specifying the polygon.

Color color

The fill color.

FillPolygon(Quadrilateral, Brush, RectangleF?, Matrix3x2?)

Fills a polygon specified by an array of points, using a specified brush and fill mode.

Declaration
public void FillPolygon(Quadrilateral quadrilateral, Brush brush, RectangleF? brushBounds = null, Matrix3x2? brushTransform = null)
Public Sub FillPolygon(quadrilateral As Quadrilateral, brush As Brush, Optional brushBounds As RectangleF? = Nothing, Optional brushTransform As Matrix3x2? = Nothing)
Parameters
Type Name Description
Quadrilateral quadrilateral

A quadrilateral specifying the polygon.

Brush brush

The fill brush.

RectangleF? brushBounds

The optional bounds for a gradient brush.

Matrix3x2? brushTransform

The transformation applied to the brush.