1. 首页
  2. 数据库
  3. 其它
  4. c# Graphics使用方法(画圆写字代码)

c# Graphics使用方法(画圆写字代码)

上传者: 2021-01-04 03:24:35上传 PDF文件 26.75KB 热度 15次
画填充圆: 代码如下:Graphics gra = this.pictureBox1.CreateGraphics();gra.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;Brush bush = new SolidBrush(Color.Green);//填充的颜色gra.FillEllipse(bush, 10, 10, 100, 100);//画填充椭圆的方法,x坐标、y坐标、宽、高,如果是100,则半径为50画圆圈: 代码如下:Graphics gra = this.pictureB
下载地址
用户评论