@@ -25,7 +25,7 @@ public static IImageProcessingContext DrawLine(
2525 Brush brush ,
2626 float thickness ,
2727 params PointF [ ] points ) =>
28- source . Draw ( options , new SolidPen ( brush , thickness ) , new Path ( new LinearLineSegment ( points ) ) ) ;
28+ source . Draw ( options , new SolidPen ( brush , thickness ) , new Path ( points ) ) ;
2929
3030 /// <summary>
3131 /// Draws the provided points as an open linear path at the provided thickness with the supplied brush.
@@ -40,7 +40,7 @@ public static IImageProcessingContext DrawLine(
4040 Brush brush ,
4141 float thickness ,
4242 params PointF [ ] points ) =>
43- source . Draw ( new SolidPen ( brush , thickness ) , new Path ( new LinearLineSegment ( points ) ) ) ;
43+ source . Draw ( new SolidPen ( brush , thickness ) , new Path ( points ) ) ;
4444
4545 /// <summary>
4646 /// Draws the provided points as an open linear path at the provided thickness with the supplied brush.
@@ -87,7 +87,7 @@ public static IImageProcessingContext DrawLine(
8787 DrawingOptions options ,
8888 Pen pen ,
8989 params PointF [ ] points ) =>
90- source . Draw ( options , pen , new Path ( new LinearLineSegment ( points ) ) ) ;
90+ source . Draw ( options , pen , new Path ( points ) ) ;
9191
9292 /// <summary>
9393 /// Draws the provided points as an open linear path with the supplied pen.
@@ -100,6 +100,6 @@ public static IImageProcessingContext DrawLine(
100100 this IImageProcessingContext source ,
101101 Pen pen ,
102102 params PointF [ ] points ) =>
103- source . Draw ( pen , new Path ( new LinearLineSegment ( points ) ) ) ;
103+ source . Draw ( pen , new Path ( points ) ) ;
104104 }
105105}
0 commit comments