---
title: "GdiGraphics..::.FillPolygon Method (Brush, array&lt;PointF&gt;[]()[], FillMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Drawing_GdiGraphics_FillPolygon_3_d47264d2.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# GdiGraphics.FillPolygon Method (Brush, PointF[], FillMode)
 
Fills a polygon.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub FillPolygon ( _brush As Brush, _points As PointF(), _fillMode As FillMode _
)
```
 
```csharp
public void FillPolygon(Brush brush,PointF[] points,FillMode fillMode
)
```
 
### Parameters
 
 - brush
     - Type: [Aurigma.GraphicsMill.Drawing.Brush](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Brush.htm.md)
 [Brush](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_Brush.htm.md) object which is used to fill a polygon.

 - points
     - Type:  [System.Drawing.PointF](http://msdn2.microsoft.com/en-us/ckys1c1e) []
Array of coordinates of the polygon vertices.

 - fillMode
     - Type: [System.Drawing.Drawing2D.FillMode](http://msdn2.microsoft.com/en-us/x490y3b6)
 [FillMode](http://msdn2.microsoft.com/en-us/x490y3b6) 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](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_UnitConverterObject_Unit.htm.md) property.

To outline the polygon, use [DrawPolygon(Pen, PointF\[\])](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Drawing_GdiGraphics_DrawPolygon_2_a58b81e0.htm.md) method.
   
## See Also

### Reference

- [GdiGraphics Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Drawing_GdiGraphics.htm.md)
- [FillPolygon Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Drawing_GdiGraphics_FillPolygon.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Drawing.htm.md)
