由直线、曲线创建图形,using System.Drawing.Drawing2D;的应用例子,C#源代码 Point[]

时间:2012-01-21 03:39:38
【文件属性】:

文件名称:由直线、曲线创建图形,using System.Drawing.Drawing2D;的应用例子,C#源代码 Point[]

文件大小:33KB

文件格式:RAR

更新时间:2012-01-21 03:39:38

由直线、曲线创建图形,using System.Drawing.Drawing2D;的应用例子,C#源代码 Point[]

由直线、曲线创建图形,using System.Drawing.Drawing2D;的应用例子,C#源代码 Point[] points = { new Point(40, 60), new Point(50, 70), new Point(30, 90)}; GraphicsPath path = new GraphicsPath(); path.StartFigure(); // Start the first figure. path.AddArc(175, 50, 50, 50, 0, -180); path.AddLine(100, 0, 250, 20); // First figure is not closed. path.StartFigure(); // Start the second figure. path.AddLine(50, 20, 5, 90); path.AddCurve(points, 3); path.AddLine(50, 150, 150, 180); path.CloseFigure(); // Second figure is closed. e.Graphics.DrawPath(new Pen(Color.FromArgb(255, 255, 0, 0), 2), path); }


【文件预览】:
createLine
----createLine.sln(920B)
----新建 文本文档.txt(882B)
----createLine()
--------bin()
--------Form1.Designer.cs(1KB)
--------Program.cs(491B)
--------obj()
--------Form1.cs(1KB)
--------Form1.resx(6KB)
--------createLine.csproj(4KB)
--------Properties()
----createLine.suo(13KB)

网友评论

  • 花七分下这个很划不来,程序都在资源简介里。而且没多大实际用处。
  • 最近正在学习System.Drawing 很有帮助