# Sandbox.Bitmap.DrawPolygon

```csharp
void DrawPolygon(Vector2[] points)
```

Draws a polygon using the current pen settings.

### Parameters

- `points` (`Vector2[]`): The points of the polygon.

Declared in [Sandbox.Bitmap](/api/Sandbox.Bitmap).
Assembly: `Sandbox.Engine`.
