绘制贝赛尔样条,C#源代码Point[] p = {
绘制贝赛尔样条,C#源代码Point[] p = { new Point(10, 100), // start point of first spline new Point(75, 10), // first control point of first spline new Point(80, 50), // second control point of first spline new Point(100, 150), // end point of first spline and // start point of second spline new Point(125, 80), // first control point of second spline new Point(175, 200), // second control point of second spline new Point(200, 80)}; // end point of second spline Pen pen = new Pen(Color.Blue); e.Graphics.DrawBeziers(pen, p);
用户评论