---
title: "GdiGraphics..::.FillPolygon Method (Brush, array&lt;PointF&gt;[]()[])"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Drawing_GdiGraphics_FillPolygon_2_928ed375.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[])
 
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() _
)
```
 
```csharp
public void FillPolygon(Brush brush,PointF[] points
)
```
 
### 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.
 
## 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.
 
By default it uses [Alternate](http://msdn2.microsoft.com/en-us/bb493340) fill mode.
   
## 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)
