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


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 用于绘制椭圆的 pen |
| x | 单精度浮点数 | 定义椭圆的矩形左上角的 X 坐标 |
| y | 单精度浮点数 | 定义椭圆的矩形左上角的 Y 坐标 |
| width | 单精度浮点数 | 定义椭圆的矩形的宽度 |
| height | 单精度浮点数 | 定义椭圆的矩形的高度 |

## 另见

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


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 用于绘制椭圆的 pen |
| x | int | 定义椭圆的矩形左上角的 X 坐标 |
| y | int | 定义椭圆的矩形左上角的 Y 坐标 |
| width | int | 定义椭圆的矩形的宽度 |
| height | int | 定义椭圆的矩形的高度 |

## 另见

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


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 用于绘制椭圆的 pen |
| rect | 矩形 | 定义椭圆的矩形 |

## 另见

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


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

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


| Parameter | Type | 描述 |
| --- | --- | --- |
| pen | const SharedPtr\<Pen\>\& | 用于绘制椭圆的 pen |
| rect | RectangleF | 定义椭圆的矩形 |

## 另见

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