如何在C#中用GDI+动态的绘制曲线
1个回答
展开全部
private void DrawLines(Graphics grp, List<Point> pointList)
{
Point one, two;
for (int i = 0; i < pointList.Count-1; i++)
{
one = pointList[i];
two = pointList[i + 1];
grp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
grp.DrawLine(new Pen(Color.Red, 2), one,two);
}
grp.Dispose();
}
{
Point one, two;
for (int i = 0; i < pointList.Count-1; i++)
{
one = pointList[i];
two = pointList[i + 1];
grp.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
grp.DrawLine(new Pen(Color.Red, 2), one,two);
}
grp.Dispose();
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询