diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
index 8f075d5c2..37fade35e 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawBezierExtensions.cs
@@ -19,14 +19,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), new Path(new CubicBezierLineSegment(points)), options);
+ => source.Draw(options, new Pen(brush, thickness), new Path(new CubicBezierLineSegment(points)));
///
/// Draws the provided points as an open Bezier path at the provided thickness with the supplied brush
@@ -59,27 +59,27 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.DrawBeziers(new SolidBrush(color), thickness, points, options);
+ => source.DrawBeziers(options, new SolidBrush(color), thickness, points);
///
/// Draws the provided points as an open Bezier path with the supplied pen
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, IPen pen, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawBeziers(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(pen, new Path(new CubicBezierLineSegment(points)), options);
+ => source.Draw(options, pen, new Path(new CubicBezierLineSegment(points)));
///
/// Draws the provided points as an open Bezier path with the supplied pen
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawImageExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawImageExtensions.cs
index 618768206..e2951ee2c 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawImageExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawImageExtensions.cs
@@ -42,10 +42,10 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The pixel format.
/// The image this method extends.
- /// The image to blend with the currently processing image.
/// The options, including the blending type and blending amount.
+ /// The image to blend with the currently processing image.
/// The .
- public static IImageProcessingContext Blend(this IImageProcessingContext source, Image image, GraphicsOptions options)
+ public static IImageProcessingContext Blend(this IImageProcessingContext source, GraphicsOptions options, Image image)
where TPixel : struct, IPixel
{
return source.ApplyProcessor(new DrawImageProcessor(image, options));
@@ -82,12 +82,12 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// Draws the given image together with the current one by blending their pixels.
///
/// The image this method extends.
+ /// The options containing the blend mode and opacity.
/// The image to blend with the currently processing image.
/// The pixel format.
/// The location to draw the blended image.
- /// The options containing the blend mode and opacity.
/// The .
- public static IImageProcessingContext DrawImage(this IImageProcessingContext source, Image image, Point location, GraphicsOptions options)
+ public static IImageProcessingContext DrawImage(this IImageProcessingContext source, GraphicsOptions options, Image image, Point location)
where TPixel : struct, IPixel
=> source.ApplyProcessor(new DrawImageProcessor(image, location, options));
}
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
index 9d2ea0c1d..7acbd0e85 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawLineExtensions.cs
@@ -19,14 +19,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), new Path(new LinearLineSegment(points)), options);
+ => source.Draw(options, new Pen(brush, thickness), new Path(new LinearLineSegment(points)));
///
/// Draws the provided Points as an open Linear path at the provided thickness with the supplied brush
@@ -59,27 +59,27 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The points.
- /// The options.
/// The .>
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.DrawLines(new SolidBrush(color), thickness, points, options);
+ => source.DrawLines(options, new SolidBrush(color), thickness, points);
///
/// Draws the provided Points as an open Linear path with the supplied pen
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawLines(this IImageProcessingContext source, IPen pen, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawLines(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(pen, new Path(new LinearLineSegment(points)), options);
+ => source.Draw(options, pen, new Path(new LinearLineSegment(points)));
///
/// Draws the provided Points as an open Linear path with the supplied pen
@@ -93,4 +93,4 @@ namespace SixLabors.ImageSharp.Processing.Drawing
where TPixel : struct, IPixel
=> source.Draw(pen, new Path(new LinearLineSegment(points)));
}
-}
+}
\ No newline at end of file
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawPathCollectionExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawPathCollectionExtensions.cs
index d148638ae..eca3805bd 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawPathCollectionExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawPathCollectionExtensions.cs
@@ -18,16 +18,16 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The paths.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, IPathCollection paths, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IPen pen, IPathCollection paths)
where TPixel : struct, IPixel
{
foreach (IPath path in paths)
{
- source.Draw(pen, path, options);
+ source.Draw(options, pen, path);
}
return source;
@@ -43,21 +43,21 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, IPathCollection paths)
where TPixel : struct, IPixel
- => source.Draw(pen, paths, GraphicsOptions.Default);
+ => source.Draw(GraphicsOptions.Default, pen, paths);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The shapes.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IBrush brush, float thickness, IPathCollection paths, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, IPathCollection paths)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), paths, options);
+ => source.Draw(options, new Pen(brush, thickness), paths);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
@@ -77,14 +77,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The paths.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, TPixel color, float thickness, IPathCollection paths, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, IPathCollection paths)
where TPixel : struct, IPixel
- => source.Draw(new SolidBrush(color), thickness, paths, options);
+ => source.Draw(options, new SolidBrush(color), thickness, paths);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawPathExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawPathExtensions.cs
index a795ee295..a15412a45 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawPathExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawPathExtensions.cs
@@ -19,13 +19,13 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The path.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, IPath path, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IPen pen, IPath path)
where TPixel : struct, IPixel
- => source.Fill(pen.StrokeFill, new ShapePath(path, pen), options);
+ => source.Fill(options, pen.StrokeFill, new ShapePath(path, pen));
///
/// Draws the outline of the polygon with the provided pen.
@@ -37,21 +37,21 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, IPath path)
where TPixel : struct, IPixel
- => source.Draw(pen, path, GraphicsOptions.Default);
+ => source.Draw(GraphicsOptions.Default, pen, path);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The shape.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IBrush brush, float thickness, IPath path, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, IPath path)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), path, options);
+ => source.Draw(options, new Pen(brush, thickness), path);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
@@ -71,14 +71,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The path.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, TPixel color, float thickness, IPath path, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, IPath path)
where TPixel : struct, IPixel
- => source.Draw(new SolidBrush(color), thickness, path, options);
+ => source.Draw(options, new SolidBrush(color), thickness, path);
///
/// Draws the outline of the polygon with the provided brush at the provided thickness.
@@ -93,4 +93,4 @@ namespace SixLabors.ImageSharp.Processing.Drawing
where TPixel : struct, IPixel
=> source.Draw(new SolidBrush(color), thickness, path);
}
-}
+}
\ No newline at end of file
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
index 833b616f8..504b9cd7e 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawPolygonExtensions.cs
@@ -19,14 +19,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IBrush brush, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)), options);
+ => source.Draw(options, new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)));
///
/// Draws the provided Points as a closed Linear Polygon with the provided brush at the provided thickness.
@@ -59,14 +59,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, TPixel color, float thickness, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, PointF[] points)
where TPixel : struct, IPixel
- => source.DrawPolygon(new SolidBrush(color), thickness, points, options);
+ => source.DrawPolygon(options, new SolidBrush(color), thickness, points);
///
/// Draws the provided Points as a closed Linear Polygon with the provided Pen.
@@ -78,19 +78,19 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IPen pen, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(pen, new Polygon(new LinearLineSegment(points)), GraphicsOptions.Default);
+ => source.Draw(GraphicsOptions.Default, pen, new Polygon(new LinearLineSegment(points)));
///
/// Draws the provided Points as a closed Linear Polygon with the provided Pen.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The points.
- /// The options.
/// The .
- public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, IPen pen, PointF[] points, GraphicsOptions options)
+ public static IImageProcessingContext DrawPolygon(this IImageProcessingContext source, GraphicsOptions options, IPen pen, PointF[] points)
where TPixel : struct, IPixel
- => source.Draw(pen, new Polygon(new LinearLineSegment(points)), options);
+ => source.Draw(options, pen, new Polygon(new LinearLineSegment(points)));
}
}
\ No newline at end of file
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/DrawRectangleExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/DrawRectangleExtensions.cs
index 3d6702be9..03be4de47 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/DrawRectangleExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/DrawRectangleExtensions.cs
@@ -19,13 +19,13 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The pen.
/// The shape.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, RectangleF shape, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IPen pen, RectangleF shape)
where TPixel : struct, IPixel
- => source.Draw(pen, new RectangularePolygon(shape.X, shape.Y, shape.Width, shape.Height), options);
+ => source.Draw(options, pen, new RectangularePolygon(shape.X, shape.Y, shape.Width, shape.Height));
///
/// Draws the outline of the rectangle with the provided pen.
@@ -37,21 +37,21 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext Draw(this IImageProcessingContext source, IPen pen, RectangleF shape)
where TPixel : struct, IPixel
- => source.Draw(pen, shape, GraphicsOptions.Default);
+ => source.Draw(GraphicsOptions.Default, pen, shape);
///
/// Draws the outline of the rectangle with the provided brush at the provided thickness.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The brush.
/// The thickness.
/// The shape.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, IBrush brush, float thickness, RectangleF shape, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, float thickness, RectangleF shape)
where TPixel : struct, IPixel
- => source.Draw(new Pen(brush, thickness), shape, options);
+ => source.Draw(options, new Pen(brush, thickness), shape);
///
/// Draws the outline of the rectangle with the provided brush at the provided thickness.
@@ -71,14 +71,14 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The thickness.
/// The shape.
- /// The options.
/// The .
- public static IImageProcessingContext Draw(this IImageProcessingContext source, TPixel color, float thickness, RectangleF shape, GraphicsOptions options)
+ public static IImageProcessingContext Draw(this IImageProcessingContext source, GraphicsOptions options, TPixel color, float thickness, RectangleF shape)
where TPixel : struct, IPixel
- => source.Draw(new SolidBrush(color), thickness, shape, options);
+ => source.Draw(options, new SolidBrush(color), thickness, shape);
///
/// Draws the outline of the rectangle with the provided brush at the provided thickness.
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/FillPathBuilderExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/FillPathBuilderExtensions.cs
index 975b5db4c..921209d2e 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/FillPathBuilderExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/FillPathBuilderExtensions.cs
@@ -18,17 +18,17 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The graphics options.
/// The brush.
/// The shape.
- /// The graphics options.
/// The .
- public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, Action path, GraphicsOptions options)
+ public static IImageProcessingContext Fill(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, Action path)
where TPixel : struct, IPixel
{
var pb = new PathBuilder();
path(pb);
- return source.Fill(brush, pb.Build(), options);
+ return source.Fill(options, brush, pb.Build());
}
///
@@ -41,20 +41,20 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, Action path)
where TPixel : struct, IPixel
- => source.Fill(brush, path, GraphicsOptions.Default);
+ => source.Fill(GraphicsOptions.Default, brush, path);
///
/// Flood fills the image in the shape of the provided polygon with the specified brush.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The path.
- /// The options.
/// The .
- public static IImageProcessingContext Fill(this IImageProcessingContext source, TPixel color, Action path, GraphicsOptions options)
+ public static IImageProcessingContext Fill(this IImageProcessingContext source, GraphicsOptions options, TPixel color, Action path)
where TPixel : struct, IPixel
- => source.Fill(new SolidBrush(color), path, options);
+ => source.Fill(options, new SolidBrush(color), path);
///
/// Flood fills the image in the shape of the provided polygon with the specified brush.
diff --git a/src/ImageSharp.Drawing/Processing/Drawing/FillPathCollectionExtensions.cs b/src/ImageSharp.Drawing/Processing/Drawing/FillPathCollectionExtensions.cs
index be472d373..71474dceb 100644
--- a/src/ImageSharp.Drawing/Processing/Drawing/FillPathCollectionExtensions.cs
+++ b/src/ImageSharp.Drawing/Processing/Drawing/FillPathCollectionExtensions.cs
@@ -17,16 +17,16 @@ namespace SixLabors.ImageSharp.Processing.Drawing
///
/// The type of the color.
/// The image this method extends.
+ /// The graphics options.
/// The brush.
/// The shapes.
- /// The graphics options.
/// The .
- public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, IPathCollection paths, GraphicsOptions options)
+ public static IImageProcessingContext Fill(this IImageProcessingContext source, GraphicsOptions options, IBrush brush, IPathCollection paths)
where TPixel : struct, IPixel
{
foreach (IPath s in paths)
{
- source.Fill(brush, s, options);
+ source.Fill(options, brush, s);
}
return source;
@@ -42,20 +42,20 @@ namespace SixLabors.ImageSharp.Processing.Drawing
/// The .
public static IImageProcessingContext Fill(this IImageProcessingContext source, IBrush brush, IPathCollection paths)
where TPixel : struct, IPixel
- => source.Fill(brush, paths, GraphicsOptions.Default);
+ => source.Fill(GraphicsOptions.Default, brush, paths);
///
/// Flood fills the image in the shape of the provided polygon with the specified brush.
///
/// The type of the color.
/// The image this method extends.
+ /// The options.
/// The color.
/// The paths.
- /// The options.
/// The .
- public static IImageProcessingContext Fill(this IImageProcessingContext source, TPixel color, IPathCollection paths, GraphicsOptions options)
+ public static IImageProcessingContext Fill(this IImageProcessingContext source, GraphicsOptions options, TPixel color, IPathCollection paths)
where TPixel : struct, IPixel
- => source.Fill(new SolidBrush(color), paths, options);
+ => source.Fill(options, new SolidBrush(color), paths);
///