---
title: "PsDocument.DrawPolygon"
url: "https://reference.aspose.com/page/net/aspose.page.eps/psdocument/drawpolygon/"
product: "Aspose.Page for .NET API Reference"
description: "PsDocument method. Draws a polygon"
---

## DrawPolygon(int[], int[], int) {#drawpolygon_1}

Draws a polygon.

```csharp
public void DrawPolygon(int[] xPoints, int[] yPoints, int nPoints)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xPoints | Int32[] | X coordinates of points. |
| yPoints | Int32[] | Y coordinate of points. |
| nPoints | Int32 | The number of points. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)

---

## DrawPolygon(double[], double[], int) {#drawpolygon}

Draws a poligone.

```csharp
public void DrawPolygon(double[] xPoints, double[] yPoints, int nPoints)
```

| Parameter | Type | Description |
| --- | --- | --- |
| xPoints | Double[] | X coordinates of points. |
| yPoints | Double[] | Y coordinate of points. |
| nPoints | Int32 | The number of points. |

### See Also

* class [PsDocument](../)
* namespace [Aspose.Page.EPS](../../psdocument/)
* assembly [Aspose.Page](../../../)


