## DrawEllipse(Pen, RectangleF) {#drawellipse_1}

Draws an ellipse defined by a bounding RectangleF.

```csharp
public void DrawEllipse(Pen pen, RectangleF rect)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pen | Pen | Pen that determines the color, width, and style of the ellipse. |
| rect | RectangleF | RectangleF structure that defines the boundaries of the ellipse. |

### See Also

* class [Pen](../../pen/)
* struct [RectangleF](../../rectanglef/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)

---

## DrawEllipse(Pen, float, float, float, float) {#drawellipse}

Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.

```csharp
public void DrawEllipse(Pen pen, float x, float y, float width, float height)
```

| Parameter | Type | Description |
| --- | --- | --- |
| pen | Pen | Pen that determines the color, width, and style of the ellipse. |
| x | Single | The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
| y | Single | The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. |
| width | Single | Width of the bounding rectangle that defines the ellipse. |
| height | Single | Height of the bounding rectangle that defines the ellipse. |

### See Also

* class [Pen](../../pen/)
* class [Graphics](../)
* namespace [System.Drawing](../../graphics/)
* assembly [Aspose.Drawing](../../../)


