斧头帮的瞎子

画了个内凹的图形

 

 private void Control_Paint(object sender, PaintEventArgs e)
        {
            // Create solid brush.

            SolidBrush redBrush = new SolidBrush(Color.Red);

            // Create array of points for curve.
            Point point1 = new Point(100, 2);
            Point point2 = new Point(2, 100);
            Point point3 = new Point(35, 35);
            Point[] points = {point1, point3,point2};
            GraphicsPath gp = new GraphicsPath();
            gp.AddLine(new Point(100, 2), new Point(2, 2));
            gp.AddLine(new Point(2, 2), new Point(2, 100));

            gp.AddCurve(points,0.8F);

            e.Graphics.FillPath(redBrush, gp);

         }

 

 

posted on 2009-11-10 10:57  愿为你而亡  阅读(229)  评论(0编辑  收藏  举报

导航