C# Graphics.FillEllipse 方法
来源:互联网 发布:微软软件开发流程 编辑:程序博客网 时间:2024/06/08 17:06
Graphics.FillEllipse 方法 (Brush, Int32, Int32, Int32, Int32)
.NET Framework (current version)
其他版本
填充边框所定义的椭圆的内部,该边框由一对坐标、一个宽度和一个高度指定。
程序集: System.Drawing(位于 System.Drawing.dll)
语法
C#
C++
F#
VB
public void FillEllipse(Brush brush,int x,int y,int width,int height)
参数
- brush
- Type: System.Drawing.Brush
确定填充特性的 Brush。
- x
- Type: System.Int32
定义椭圆的边框的左上角的 X 坐标。
- y
- Type: System.Int32
定义椭圆的边框的左上角的 Y 坐标。
- width
- Type: System.Int32
定义椭圆的边框的宽度。
- height
- Type: System.Int32
定义椭圆的边框的高度。
异常
brush 为 null。
备注
此方法填充与的椭圆的内部 Brush。 由该边框由表示定义椭圆 x, ,y, ,width, ,和height 参数。
示例
下面的代码示例仅用于 Windows 窗体,并且它要求在 PaintEventArgse, ,这是一个参数的 Paint 事件处理程序。 该代码执行下列操作:
创建实心的红色画笔。
创建的位置和大小来限定椭圆的矩形。
填充椭圆在屏幕上。
C#
C++
VB
public void FillEllipseInt(PaintEventArgs e){ // Create solid brush. SolidBrush redBrush = new SolidBrush(Color.Red); // Create location and size of ellipse. int x = 0; int y = 0; int width = 200; int height = 100; // Fill ellipse on screen. e.Graphics.FillEllipse(redBrush, x, y, width, height);}
版本信息
.NET Framework 自 1.1 起可用
0 0
- C# Graphics.FillEllipse 方法
- C# graphics方法
- C# graphics方法
- C# graphics方法
- c#创建Graphics对象的三种方法
- C#图形Graphics
- c#画线Graphics
- C# 使用Graphics画图
- C# Graphics类详解
- C# Graphics类详解
- C# Graphics类详解
- C# Graphics类详解
- C# Graphics类详解
- c#获取Graphics对象
- C# Graphics类
- C#绘图[Graphics|CreateGraphics|OnPaint|Graphics.FromImage]
- Graphics.FillPie 方法
- Graphics.drawTriangles方法。
- 开源PLM软件Aras详解七 在Aras的Method中如何引用外部DLL
- Docker的安装配置及使用详解
- NYOJ23 取石子(一)
- 编程前的准备--jdk环境变量配置
- 1057. Stack
- C# Graphics.FillEllipse 方法
- 别混淆了sizeof(数组名)和sizeof(指针)
- ALGO-34 算法训练 纪念品分组
- 回调函数与C++中类成员作为回调函数
- LeetCode 45 --- Jump Game II
- Linux下的特殊权限s t i a
- java编程思想第10章内部类 总结(1)
- java:当父类无无参构造函数并且有其他构造函数时,子类不能调用默认构造函数
- 分布式跟踪系统:Zipkin