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


Draws the specified ellipse using the specified pen on the surface represented by the current object.

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


| Parameter | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | A pen to use when drawing the ellipse |
| x | float | The X coordinate of the upper left corner of the rectangle that defines the ellipse |
| y | float | The Y coordinate of the upper left corner of the rectangle that defines the ellipse |
| width | float | The width of the rectangle that defines the ellipse |
| height | float | The height of the rectangle that defines the ellipse |

## See Also

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


Draws the specified ellipse using the specified pen on the surface represented by the current object.

```cpp
void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, int x, int y, int width, int height)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | A pen to use when drawing the ellipse |
| x | int | The X coordinate of the upper left corner of the rectangle that defines the ellipse |
| y | int | The Y coordinate of the upper left corner of the rectangle that defines the ellipse |
| width | int | The width of the rectangle that defines the ellipse |
| height | int | The height of the rectangle that defines the ellipse |

## See Also

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


Draws the specified ellipse using the specified pen on the surface represented by the current object.

```cpp
void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, Rectangle rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | A pen to use when drawing the ellipse |
| rect | Rectangle | The rectangle that defines the ellipse |

## See Also

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


Draws the specified ellipse using the specified pen on the surface represented by the current object.

```cpp
void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, RectangleF rect)
```


| Parameter | Type | Description |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | A pen to use when drawing the ellipse |
| rect | RectangleF | The rectangle that defines the ellipse |

## See Also

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