zoukankan      html  css  js  c++  java
  • 绘制椭圆

    实现效果:

      

    知识运用:

      Graphics类中的DrawEllipse方法

      public void  DrawEllipse (Pen pen,Rectangle rect)  //绘制边界由Rectangle结构指定的椭圆

      public void DrewEllipse (Pen pen ,int x ,int x, int width,int height)  //由边框指定的椭圆

    实现代码:

            private void button1_Click(object sender, EventArgs e)
            {
                Pen greenPen = new Pen(Color.Green,5);
                Graphics g = this.CreateGraphics();
                g.DrawEllipse(greenPen,35,20,200,140);
            }
    

     

  • 相关阅读:
    学习进度表
    第十三周
    硅谷之谜
    第12周
    我的成就故事
    学习进度表
    第8周总结
    测试作业
    第六周周总结
    问卷调查
  • 原文地址:https://www.cnblogs.com/feiyucha/p/10257162.html
Copyright © 2011-2022 走看看