System::Drawing::Graphics::DrawEllipse 方法

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

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

void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, float x, float y, float width, float height)
参数类型描述
const SharedPtr<Pen>&绘制椭圆时使用的笔
xfloat定义椭圆的矩形左上角的 X 坐标
yfloat定义椭圆的矩形左上角的 Y 坐标
widthfloat定义椭圆的矩形的宽度
heightfloat定义椭圆的矩形的高度

另见

Graphics::DrawEllipse(const SharedPtr<Pen>&, int, int, int, int) method

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

void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, int x, int y, int width, int height)
参数类型描述
const SharedPtr<Pen>&绘制椭圆时使用的笔
xint定义椭圆的矩形左上角的 X 坐标
yint定义椭圆的矩形左上角的 Y 坐标
widthint定义椭圆的矩形的宽度
heightint定义椭圆的矩形的高度

另见

Graphics::DrawEllipse(const SharedPtr<Pen>&, Rectangle) method

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

void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, Rectangle rect)
参数类型描述
const SharedPtr<Pen>&绘制椭圆时使用的笔
rect矩形定义椭圆的矩形

另见

Graphics::DrawEllipse(const SharedPtr<Pen>&, RectangleF) method

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

void System::Drawing::Graphics::DrawEllipse(const SharedPtr<Pen> &pen, RectangleF rect)
参数类型描述
const SharedPtr<Pen>&绘制椭圆时使用的笔
rectRectangleF定义椭圆的矩形

另见