如何在c#中用point函数定义出一个数组来画个多变图形?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 22:35:04
如何在c#中用point函数定义出一个数组来画个多变图形?

如何在c#中用point函数定义出一个数组来画个多变图形?
如何在c#中用point函数定义出一个数组来画个多变图形?

如何在c#中用point函数定义出一个数组来画个多变图形?
用System.Drawing.Drawing2D.GraphicsPath
比如 GraphicsPath.AddLines(Point[] pts);
GraphicsPath path = new GraphicsPath();
path.Add.
Graphics g = this.CreateGraphics();
g.Clear(Color.White);
Pen p1 = new Pen(Color.Red,2);
g.DrawPath(p1,path);
p1.Dispose();
g.Dispose();