## GraphicsPath::AddPie(const Rectangle\&, float, float) method


Adds the specified outline of the pie shape to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddPie(const Rectangle &rect, float startAngle, float sweepAngle)
```


| Parameter | Type | Description |
| --- | --- | --- |
| rect | const Rectangle\& | The rectangle that bounds the ellipse from which the pie is drawn |
| startAngle | float | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
| sweepAngle | float | Specifies the angle between the starting angle and the end of the pie |

## See Also

* Class [Rectangle](../../../system.drawing/rectangle/)
* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.TeX for C++](../../../)
## GraphicsPath::AddPie(float, float, float, float, float, float) method


Adds the specified outline of the pie shape to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddPie(float x, float y, float width, float height, float startAngle, float sweepAngle)
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | float | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| y | float | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| width | float | The width of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| height | float | The height of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| startAngle | float | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
| sweepAngle | float | Specifies the angle between the starting angle and the end of the pie |

## See Also

* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.TeX for C++](../../../)
## GraphicsPath::AddPie(int, int, int, int, float, float) method


Adds the specified outline of the pie shape to the path represented by the current object.

```cpp
void System::Drawing::Drawing2D::GraphicsPath::AddPie(int x, int y, int width, int height, float startAngle, float sweepAngle)
```


| Parameter | Type | Description |
| --- | --- | --- |
| x | int | The X coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| y | int | The Y coordinate of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| width | int | The width of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| height | int | The height of the upper left corner of the rectangle that bounds the ellipse from which the pie is drawn |
| startAngle | float | Specifies the starting angle of the pie in degrees, measured clockwise from the X-axis |
| sweepAngle | float | Specifies the angle between the starting angle and the end of the pie |

## See Also

* Class [GraphicsPath](../)
* Namespace [System::Drawing::Drawing2D](../../)
* Library [Aspose.TeX for C++](../../../)
