## AddPie(Rectangle, float, float) {#addpie_1}

Adds the outline of a pie shape to this path.

```csharp
public void AddPie(Rectangle rect, float startAngle, float sweepAngle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rect | Rectangle | A Rectangle that represents the bounding rectangle that defines the ellipse from which the pie is drawn. |
| startAngle | Single | The starting angle for the pie section, measured in degrees clockwise from the x-axis. |
| sweepAngle | Single | The angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle. |

### See Also

* struct [Rectangle](../../../system.drawing/rectangle/)
* class [GraphicsPath](../)
* namespace [System.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing](../../../)

---

## AddPie(float, float, float, float, float, float) {#addpie}

Adds the outline of a pie shape to this path.

```csharp
public void AddPie(float x, float y, float width, float height, float startAngle, float sweepAngle)
```

| Parameter | Type | Description |
| --- | --- | --- |
| x | Single | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn. |
| y | Single | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse from which the pie is drawn. |
| width | Single | The width of the bounding rectangle that defines the ellipse from which the pie is drawn. |
| height | Single | The height of the bounding rectangle that defines the ellipse from which the pie is drawn. |
| startAngle | Single | The starting angle for the pie section, measured in degrees clockwise from the x-axis. |
| sweepAngle | Single | The angle between startAngle and the end of the pie section, measured in degrees clockwise from startAngle. |

### See Also

* class [GraphicsPath](../)
* namespace [System.Drawing.Drawing2D](../../graphicspath/)
* assembly [Aspose.Drawing](../../../)


