画图画板示例完事

This commit is contained in:
艾竹
2023-05-20 17:22:12 +08:00
parent 117a500f72
commit 6a9d31c29d
3 changed files with 23 additions and 24 deletions

View File

@@ -44,11 +44,9 @@ namespace AIStudio.Wpf.DiagramDesigner
var figure = new PathFigure { StartPoint = Points[0] };
geometry.Figures.Add(figure);
foreach (var point in Points)
for (int i = 1; i < Points.Count; i++)
{
if (Points[0] == point) continue;
LineSegment arc = new LineSegment(point, true);
LineSegment arc = new LineSegment(Points[i], true);
geometry.Figures[0].Segments.Add(arc);
}