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

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/01 01:59:24
如何在c#中用point函数定义出一个数组来画个多变图形?
x){ީOHV~c)+ 3J}6uu|ھɎ';VEny6w)ܧKf=t{$S,; ;$5Wϥ(<3/F%dd&$d?[?hcJOf^jFѱ %Ś` @B^j9~ Yz(:ҁZJ22RKRa0]z9E9Ez%P<C@TIPj\3ȫ`GsKfqA~q*$<;P\M

如何在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();