Pen pen = new Pen(this.red, 20);
Point pCurrent = new Point(e.X, e.Y);
g.DrawLine(pen, this.pLast, pCurrent);
this.pLast = pCurrent;上面的代码画出来比较粗糙,有没有办法实现更圆润的画笔?

解决方案 »

  1.   

    g.SmoothingMode = SmoothingMode.AntiAlias;
    加上试试
      

  2.   

     LZ.你能否教我,如何在C#窗体中画画。
      

  3.   

    据说可用样条曲线:g.DrawCurve();
      

  4.   

    MouseMove(object sender, MouseEventArgs e)
            {
                this.g = this.pictureBox1.CreateGraphics();//指定控件
                if (e.Button != MouseButtons.Left)//判断是否为左键
                {
                    this.pLast = new Point(e.X, e.Y);
                    return;
                }
                Pen pen = new Pen(this.TransparencyKey, 30);//画刷颜色,宽度
                Point pCurrent = new Point(e.X, e.Y);
                    this.g.DrawLine(pen, this.pLast, pCurrent);
                this.pLast = pCurrent;
            }
      

  5.   

    SoftBrush
    Doodle - a basic paint package in GDI+
      

  6.   


            private void button1_Click(object sender, EventArgs e) {
                Graphics g = this.CreateGraphics();
                SolidBrush sb = new SolidBrush(Color.Red);
                for (int i = 0; i < 200; i++) {
                    g.FillEllipse(sb, 50, 50 + i, 30, 30);
                }
                g.Dispose();
                sb.Dispose();
            }刚才 试了一下 
      

  7.   

    那有木有人知道怎么重绘RadioButton,那个圆形背景是透明的