## Graphics::DrawPie(const SharedPtr\<Pen\>\&, float, float, float, float, float, float) method


在当前对象所表示的表面上使用指定的笔绘制指定的饼形。

```cpp
void System::Drawing::Graphics::DrawPie(const SharedPtr<Pen> &pen, float x, float y, float width, float height, float startAngle, float sweepAngle)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制饼形时使用的笔 |
| x | 单精度浮点数 | 定义椭圆的矩形左上角的 X 坐标 |
| y | 单精度浮点数 | 定义椭圆的矩形左上角的 Y 坐标 |
| width | 单精度浮点数 | 定义椭圆的矩形的宽度 |
| height | 单精度浮点数 | 定义椭圆的矩形的高度 |
| startAngle | 单精度浮点数 | 从 X 轴顺时针测量到饼形起始点的角度（度） |
| sweepAngle | 单精度浮点数 | 从 **startAngle** 顺时针测量到饼形结束点的角度（度） |

## 另见

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


在当前对象所表示的表面上使用指定的笔绘制指定的饼形。

```cpp
void System::Drawing::Graphics::DrawPie(const SharedPtr<Pen> &pen, int32_t x, int32_t y, int32_t width, int32_t height, int32_t startAngle, int32_t sweepAngle)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制饼形时使用的笔 |
| x | int32_t | 定义椭圆的矩形左上角的 X 坐标 |
| y | int32_t | 定义椭圆的矩形左上角的 Y 坐标 |
| width | int32_t | 定义椭圆的矩形的宽度 |
| height | int32_t | 定义椭圆的矩形的高度 |
| startAngle | int32_t | 从 X 轴顺时针测量到饼形起始点的角度（度） |
| sweepAngle | int32_t | 从 **startAngle** 顺时针测量到饼形结束点的角度（度） |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawPie(const SharedPtr\<Pen\>\&, Rectangle, float, float) method


在当前对象所表示的表面上使用指定的笔绘制指定的饼形。

```cpp
void System::Drawing::Graphics::DrawPie(const SharedPtr<Pen> &pen, Rectangle rect, float startAngle, float sweepAngle)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制饼形时使用的笔 |
| rect | 矩形 | 定义椭圆的矩形 |
| startAngle | 单精度浮点数 | 从 X 轴顺时针测量到饼形起始点的角度（度） |
| sweepAngle | 单精度浮点数 | 从 **startAngle** 顺时针测量到饼形结束点的角度（度） |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Pen](../../pen/)
* Class [Rectangle](../../rectangle/)
* Class [Graphics](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.Page for C++](../../../)
## Graphics::DrawPie(const SharedPtr\<Pen\>\&, RectangleF, float, float) method


在当前对象所表示的表面上使用指定的笔绘制指定的饼形。

```cpp
void System::Drawing::Graphics::DrawPie(const SharedPtr<Pen> &pen, RectangleF rect, float startAngle, float sweepAngle)
```


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 绘制饼形时使用的笔 |
| rect | RectangleF | 定义椭圆的矩形 |
| startAngle | 单精度浮点数 | 从 X 轴顺时针测量到饼形起始点的角度（度） |
| sweepAngle | 单精度浮点数 | 从 **startAngle** 顺时针测量到饼形结束点的角度（度） |

## 另见

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