개정판 6d1a8228
issue #923: optimize to draw control
Change-Id: I8dbeef611f15cabb8f742817161ef17823bc55d6
MarkupToPDF/Controls/Polygon/PolygonControl.cs | ||
---|---|---|
446 | 446 |
PathGeometry pathGeometry = new PathGeometry(); |
447 | 447 |
PathFigure pathFigure = new PathFigure(); |
448 | 448 |
PolyLineSegment instance = new PolyLineSegment(); |
449 |
|
|
450 |
|
|
451 | 449 |
foreach (var Inneritem in PointSet) |
452 | 450 |
{ |
453 | 451 |
instance.Points.Add(Inneritem); |
454 | 452 |
} |
455 | 453 |
|
456 |
|
|
457 | 454 |
StartPoint = instance.Points.First(); |
458 | 455 |
pathFigure.StartPoint = StartPoint; |
459 | 456 |
EndPoint = instance.Points.Last(); |
내보내기 Unified diff