## Graphics::DrawPolygon(const SharedPtr\<Pen\>\&, const ArrayPtr\<Point\>\&) method


使用指定的笔绘制多边形。

```cpp
void System::Drawing::Graphics::DrawPolygon(const SharedPtr<Pen> &pen, const ArrayPtr<Point> &points)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制多边形时使用的笔 |
| points | const ArrayPtr\<Point\>\& | [Array](../../../system/array/) 用于定义多边形的顶点 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [Point](../../point/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawPolygon(const SharedPtr\<Pen\>\&, const ArrayPtr\<PointF\>\&) method


使用指定的笔绘制多边形。

```cpp
void System::Drawing::Graphics::DrawPolygon(const SharedPtr<Pen> &pen, const ArrayPtr<PointF> &points)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制多边形时使用的笔 |
| points | const ArrayPtr\<PointF\>\& | [Array](../../../system/array/) 用于定义多边形的顶点 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [PointF](../../pointf/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
