diff --git a/src/ImageSharp.Drawing.Paths/DrawBeziers.cs b/src/ImageSharp.Drawing.Paths/DrawBeziers.cs
index ef11a3bac5..936d5a9ce5 100644
--- a/src/ImageSharp.Drawing.Paths/DrawBeziers.cs
+++ b/src/ImageSharp.Drawing.Paths/DrawBeziers.cs
@@ -29,7 +29,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawBeziers(this Image source, IBrush brush, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Path(new BezierLineSegment(points)), options);
}
@@ -44,7 +44,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawBeziers(this Image source, IBrush brush, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Path(new BezierLineSegment(points)));
}
@@ -59,7 +59,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawBeziers(this Image source, TColor color, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawBeziers(new SolidBrush(color), thickness, points);
}
@@ -75,7 +75,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawBeziers(this Image source, TColor color, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawBeziers(new SolidBrush(color), thickness, points, options);
}
@@ -90,7 +90,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawBeziers(this Image source, IPen pen, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Path(new BezierLineSegment(points)), options);
}
@@ -104,7 +104,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawBeziers(this Image source, IPen pen, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Path(new BezierLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing.Paths/DrawLines.cs b/src/ImageSharp.Drawing.Paths/DrawLines.cs
index fc046d6276..42f4406e83 100644
--- a/src/ImageSharp.Drawing.Paths/DrawLines.cs
+++ b/src/ImageSharp.Drawing.Paths/DrawLines.cs
@@ -29,7 +29,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawLines(this Image source, IBrush brush, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Path(new LinearLineSegment(points)), options);
}
@@ -44,7 +44,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawLines(this Image source, IBrush brush, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Path(new LinearLineSegment(points)));
}
@@ -59,7 +59,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawLines(this Image source, TColor color, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawLines(new SolidBrush(color), thickness, points);
}
@@ -75,7 +75,7 @@ namespace ImageSharp
/// The options.
/// The .>
public static Image DrawLines(this Image source, TColor color, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawLines(new SolidBrush(color), thickness, points, options);
}
@@ -90,7 +90,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawLines(this Image source, IPen pen, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Path(new LinearLineSegment(points)), options);
}
@@ -104,7 +104,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawLines(this Image source, IPen pen, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Path(new LinearLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing.Paths/DrawPath.cs b/src/ImageSharp.Drawing.Paths/DrawPath.cs
index 29b389fa24..e2c1442de8 100644
--- a/src/ImageSharp.Drawing.Paths/DrawPath.cs
+++ b/src/ImageSharp.Drawing.Paths/DrawPath.cs
@@ -28,7 +28,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, IPen pen, IPath path, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new ShapePath(path), options);
}
@@ -42,7 +42,7 @@ namespace ImageSharp
/// The path.
/// The .
public static Image Draw(this Image source, IPen pen, IPath path)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, path, GraphicsOptions.Default);
}
@@ -58,7 +58,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, IBrush brush, float thickness, IPath path, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), path, options);
}
@@ -73,7 +73,7 @@ namespace ImageSharp
/// The path.
/// The .
public static Image Draw(this Image source, IBrush brush, float thickness, IPath path)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), path);
}
@@ -89,7 +89,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, TColor color, float thickness, IPath path, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new SolidBrush(color), thickness, path, options);
}
@@ -104,7 +104,7 @@ namespace ImageSharp
/// The path.
/// The .
public static Image Draw(this Image source, TColor color, float thickness, IPath path)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new SolidBrush(color), thickness, path);
}
diff --git a/src/ImageSharp.Drawing.Paths/DrawPolygon.cs b/src/ImageSharp.Drawing.Paths/DrawPolygon.cs
index 6b3a6f1f36..8043d18e56 100644
--- a/src/ImageSharp.Drawing.Paths/DrawPolygon.cs
+++ b/src/ImageSharp.Drawing.Paths/DrawPolygon.cs
@@ -29,7 +29,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawPolygon(this Image source, IBrush brush, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)), options);
}
@@ -44,7 +44,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawPolygon(this Image source, IBrush brush, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), new Polygon(new LinearLineSegment(points)));
}
@@ -59,7 +59,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawPolygon(this Image source, TColor color, float thickness, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawPolygon(new SolidBrush(color), thickness, points);
}
@@ -75,7 +75,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawPolygon(this Image source, TColor color, float thickness, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.DrawPolygon(new SolidBrush(color), thickness, points, options);
}
@@ -89,7 +89,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image DrawPolygon(this Image source, IPen pen, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Polygon(new LinearLineSegment(points)), GraphicsOptions.Default);
}
@@ -104,7 +104,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image DrawPolygon(this Image source, IPen pen, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new Polygon(new LinearLineSegment(points)), options);
}
diff --git a/src/ImageSharp.Drawing.Paths/DrawRectangle.cs b/src/ImageSharp.Drawing.Paths/DrawRectangle.cs
index d42fee5dc1..b356652409 100644
--- a/src/ImageSharp.Drawing.Paths/DrawRectangle.cs
+++ b/src/ImageSharp.Drawing.Paths/DrawRectangle.cs
@@ -26,7 +26,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, IPen pen, Rectangle shape, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, new SixLabors.Shapes.Rectangle(shape.X, shape.Y, shape.Width, shape.Height), options);
}
@@ -40,7 +40,7 @@ namespace ImageSharp
/// The shape.
/// The .
public static Image Draw(this Image source, IPen pen, Rectangle shape)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(pen, shape, GraphicsOptions.Default);
}
@@ -56,7 +56,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, IBrush brush, float thickness, Rectangle shape, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), shape, options);
}
@@ -71,7 +71,7 @@ namespace ImageSharp
/// The shape.
/// The .
public static Image Draw(this Image source, IBrush brush, float thickness, Rectangle shape)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new Pen(brush, thickness), shape);
}
@@ -87,7 +87,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Draw(this Image source, TColor color, float thickness, Rectangle shape, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new SolidBrush(color), thickness, shape, options);
}
@@ -102,7 +102,7 @@ namespace ImageSharp
/// The shape.
/// The .
public static Image Draw(this Image source, TColor color, float thickness, Rectangle shape)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Draw(new SolidBrush(color), thickness, shape);
}
diff --git a/src/ImageSharp.Drawing.Paths/FillPaths.cs b/src/ImageSharp.Drawing.Paths/FillPaths.cs
index 1dd0b0a3a8..92e227ce1f 100644
--- a/src/ImageSharp.Drawing.Paths/FillPaths.cs
+++ b/src/ImageSharp.Drawing.Paths/FillPaths.cs
@@ -27,7 +27,7 @@ namespace ImageSharp
/// The graphics options.
/// The .
public static Image Fill(this Image source, IBrush brush, IPath path, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new ShapeRegion(path), options);
}
@@ -41,7 +41,7 @@ namespace ImageSharp
/// The path.
/// The .
public static Image Fill(this Image source, IBrush brush, IPath path)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new ShapeRegion(path), GraphicsOptions.Default);
}
@@ -56,7 +56,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Fill(this Image source, TColor color, IPath path, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(new SolidBrush(color), path, options);
}
@@ -70,7 +70,7 @@ namespace ImageSharp
/// The path.
/// The .
public static Image Fill(this Image source, TColor color, IPath path)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(new SolidBrush(color), path);
}
diff --git a/src/ImageSharp.Drawing.Paths/FillPolygon.cs b/src/ImageSharp.Drawing.Paths/FillPolygon.cs
index b41267b9e2..cd3d154666 100644
--- a/src/ImageSharp.Drawing.Paths/FillPolygon.cs
+++ b/src/ImageSharp.Drawing.Paths/FillPolygon.cs
@@ -27,7 +27,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image FillPolygon(this Image source, IBrush brush, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new Polygon(new LinearLineSegment(points)), options);
}
@@ -41,7 +41,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image FillPolygon(this Image source, IBrush brush, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new Polygon(new LinearLineSegment(points)));
}
@@ -56,7 +56,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image FillPolygon(this Image source, TColor color, Vector2[] points, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(new SolidBrush(color), new Polygon(new LinearLineSegment(points)), options);
}
@@ -70,7 +70,7 @@ namespace ImageSharp
/// The points.
/// The .
public static Image FillPolygon(this Image source, TColor color, Vector2[] points)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(new SolidBrush(color), new Polygon(new LinearLineSegment(points)));
}
diff --git a/src/ImageSharp.Drawing.Paths/FillRectangle.cs b/src/ImageSharp.Drawing.Paths/FillRectangle.cs
index 3b2cef6131..1928e54d3c 100644
--- a/src/ImageSharp.Drawing.Paths/FillRectangle.cs
+++ b/src/ImageSharp.Drawing.Paths/FillRectangle.cs
@@ -25,7 +25,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Fill(this Image source, IBrush brush, Rectangle shape, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new SixLabors.Shapes.Rectangle(shape.X, shape.Y, shape.Width, shape.Height), options);
}
@@ -39,7 +39,7 @@ namespace ImageSharp
/// The shape.
/// The .
public static Image Fill(this Image source, IBrush brush, Rectangle shape)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel
{
return source.Fill(brush, new SixLabors.Shapes.Rectangle(shape.X, shape.Y, shape.Width, shape.Height));
}
@@ -54,7 +54,7 @@ namespace ImageSharp
/// The options.
/// The .
public static Image Fill(this Image source, TColor color, Rectangle shape, GraphicsOptions options)
- where TColor : struct, IPackedPixel, IEquatable
+ where TColor : struct, IPixel