diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
index 37fade35ed..72bd76fa69 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
@@ -24,7 +24,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, new Pen(brush, thickness), new Path(new CubicBezierLineSegment(points)));
@@ -37,7 +37,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(new Pen(brush, thickness), new Path(new CubicBezierLineSegment(points)));
@@ -50,7 +50,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawBeziers(new SolidBrush(color), thickness, points);
@@ -64,7 +64,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawBeziers(options, new SolidBrush(color), thickness, points);
@@ -77,7 +77,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, pen, new Path(new CubicBezierLineSegment(points)));
@@ -89,7 +89,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(pen, new Path(new CubicBezierLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
index 7acbd0e855..981a07e13a 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
@@ -24,7 +24,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, new Pen(brush, thickness), new Path(new LinearLineSegment(points)));
@@ -37,7 +37,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(new Pen(brush, thickness), new Path(new LinearLineSegment(points)));
@@ -50,7 +50,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawLines(new SolidBrush(color), thickness, points);
@@ -64,7 +64,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .>
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawLines(options, new SolidBrush(color), thickness, points);
@@ -77,7 +77,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, pen, new Path(new LinearLineSegment(points)));
@@ -89,7 +89,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(pen, new Path(new LinearLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
index 504b9cd7e4..9f8d74f006 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
@@ -24,7 +24,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)));
@@ -37,7 +37,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IBrush brush, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)));
@@ -50,7 +50,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawPolygon(new SolidBrush(color), thickness, points);
@@ -64,7 +64,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The thickness.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, params PointF[] points)
where TPixel : struct, IPixel
=> source.DrawPolygon(options, new SolidBrush(color), thickness, points);
@@ -76,7 +76,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(GraphicsOptions.Default, pen, new Polygon(new LinearLineSegment(points)));
@@ -89,7 +89,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The pen.
/// The points.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IPen pen, params PointF[] points)
where TPixel : struct, IPixel
=> source.Draw(options, pen, new Polygon(new LinearLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/FillPolygonExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/FillPolygonExtensions.cs
index 0b3d493b71..3b80dd0f44 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/FillPolygonExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/FillPolygonExtensions.cs
@@ -22,7 +22,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The brush.
/// The points.
/// The .
- public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, PointF[] points)
+ public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, params PointF[] points)
where TPixel : struct, IPixel
=> source.Fill(options, brush, new Polygon(new LinearLineSegment(points)));
@@ -34,7 +34,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The brush.
/// The points.
/// The .
- public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, IBrush brush, PointF[] points)
+ public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, IBrush brush, params PointF[] points)
where TPixel : struct, IPixel
=> source.Fill(brush, new Polygon(new LinearLineSegment(points)));
@@ -47,7 +47,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The color.
/// The points.
/// The .
- public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, GraphicsOptions options, TPixel color, PointF[] points)
+ public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, GraphicsOptions options, TPixel color, params PointF[] points)
where TPixel : struct, IPixel
=> source.Fill(options, new SolidBrush(color), new Polygon(new LinearLineSegment(points)));
@@ -59,7 +59,7 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The color.
/// The points.
/// The .
- public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, TPixel color, PointF[] points)
+ public static IImageProcessingContext FillPolygon(this IImageProcessingContext source, TPixel color, params PointF[] points)
where TPixel : struct, IPixel
=> source.Fill(new SolidBrush(color), new Polygon(new LinearLineSegment(points)));
}