diff --git a/src/ImageSharp.Drawing/Brushes/Brushes.cs b/src/ImageSharp.Drawing/Brushes/Brushes.cs
index d7b10c32a..8998c60f6 100644
--- a/src/ImageSharp.Drawing/Brushes/Brushes.cs
+++ b/src/ImageSharp.Drawing/Brushes/Brushes.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
+ using ImageSharp.PixelFormats;
+
///
/// A collection of methods for creating brushes. Brushes use for painting.
///
diff --git a/src/ImageSharp.Drawing/Brushes/Brushes{TPixel}.cs b/src/ImageSharp.Drawing/Brushes/Brushes{TPixel}.cs
index d56e9e6eb..4b2f6c026 100644
--- a/src/ImageSharp.Drawing/Brushes/Brushes{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Brushes/Brushes{TPixel}.cs
@@ -5,7 +5,7 @@
namespace ImageSharp.Drawing.Brushes
{
- using System;
+ using ImageSharp.PixelFormats;
///
/// A collection of methods for creating generic brushes.
diff --git a/src/ImageSharp.Drawing/Brushes/IBrush.cs b/src/ImageSharp.Drawing/Brushes/IBrush.cs
index a19c55169..e16f22028 100644
--- a/src/ImageSharp.Drawing/Brushes/IBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/IBrush.cs
@@ -5,8 +5,7 @@
namespace ImageSharp.Drawing
{
- using System;
-
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Brushes/ImageBrush.cs b/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
index 84004a48d..6a3ff1d9d 100644
--- a/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/ImageBrush.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
+ using ImageSharp.PixelFormats;
+
///
/// Provides an implementation of a solid brush for painting with repeating images. The brush uses for painting.
///
diff --git a/src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs b/src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs
index e7ae27b60..3e2da040f 100644
--- a/src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs
@@ -6,7 +6,7 @@
namespace ImageSharp.Drawing.Brushes
{
using System.Numerics;
-
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Brushes/PatternBrush.cs b/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
index 8884d1e02..f00862fe7 100644
--- a/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/PatternBrush.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
+ using ImageSharp.PixelFormats;
+
///
/// Provides an implementation of a pattern brush for painting patterns. The brush use for painting.
///
diff --git a/src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs b/src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs
index 4f3240247..ad37f4d28 100644
--- a/src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs
@@ -7,7 +7,7 @@ namespace ImageSharp.Drawing.Brushes
{
using System;
using System.Numerics;
-
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs b/src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs
index 0116a13ae..5dd6dad76 100644
--- a/src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs
+++ b/src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs
@@ -7,7 +7,7 @@ namespace ImageSharp.Drawing.Processors
{
using System;
using System.Numerics;
- using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// primitive that converts a point in to a color for discovering the fill color based on an implementation
diff --git a/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs b/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
index 3041d0edf..bfe5c01e6 100644
--- a/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/RecolorBrush.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
+ using ImageSharp.PixelFormats;
+
///
/// Provides an implementation of a recolor brush for painting color changes.
///
diff --git a/src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs b/src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs
index aa1b5cb82..7c192b2d3 100644
--- a/src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs
@@ -5,9 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
- using System;
using System.Numerics;
-
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Brushes/SolidBrush.cs b/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
index 7c65d782a..8a3ad50e7 100644
--- a/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
+++ b/src/ImageSharp.Drawing/Brushes/SolidBrush.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
+ using ImageSharp.PixelFormats;
+
///
/// Provides an implementation of a solid brush for painting solid color areas. The brush uses for painting.
///
diff --git a/src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs b/src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs
index 4d9b6adb3..634a2b70d 100644
--- a/src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs
@@ -5,9 +5,8 @@
namespace ImageSharp.Drawing.Brushes
{
- using System;
using System.Numerics;
-
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/DrawImage.cs b/src/ImageSharp.Drawing/DrawImage.cs
index 7f4fb3392..6a4f49337 100644
--- a/src/ImageSharp.Drawing/DrawImage.cs
+++ b/src/ImageSharp.Drawing/DrawImage.cs
@@ -5,9 +5,8 @@
namespace ImageSharp
{
- using System;
-
using Drawing.Processors;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the type.
diff --git a/src/ImageSharp.Drawing/DrawPath.cs b/src/ImageSharp.Drawing/DrawPath.cs
index 64f69c4db..09d3dbb02 100644
--- a/src/ImageSharp.Drawing/DrawPath.cs
+++ b/src/ImageSharp.Drawing/DrawPath.cs
@@ -5,12 +5,11 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
using Drawing.Processors;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the type.
diff --git a/src/ImageSharp.Drawing/FillRegion.cs b/src/ImageSharp.Drawing/FillRegion.cs
index fda5c2c26..f29c37a67 100644
--- a/src/ImageSharp.Drawing/FillRegion.cs
+++ b/src/ImageSharp.Drawing/FillRegion.cs
@@ -5,11 +5,10 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
using Drawing.Processors;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the type.
diff --git a/src/ImageSharp.Drawing/Paths/DrawBeziers.cs b/src/ImageSharp.Drawing/Paths/DrawBeziers.cs
index af96ef50e..c4ea8c378 100644
--- a/src/ImageSharp.Drawing/Paths/DrawBeziers.cs
+++ b/src/ImageSharp.Drawing/Paths/DrawBeziers.cs
@@ -5,12 +5,11 @@
namespace ImageSharp
{
- using System;
using System.Numerics;
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/DrawLines.cs b/src/ImageSharp.Drawing/Paths/DrawLines.cs
index c0c49a77a..e8c463638 100644
--- a/src/ImageSharp.Drawing/Paths/DrawLines.cs
+++ b/src/ImageSharp.Drawing/Paths/DrawLines.cs
@@ -5,12 +5,11 @@
namespace ImageSharp
{
- using System;
using System.Numerics;
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/DrawPath.cs b/src/ImageSharp.Drawing/Paths/DrawPath.cs
index f25c15336..176539663 100644
--- a/src/ImageSharp.Drawing/Paths/DrawPath.cs
+++ b/src/ImageSharp.Drawing/Paths/DrawPath.cs
@@ -5,12 +5,10 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/DrawPolygon.cs b/src/ImageSharp.Drawing/Paths/DrawPolygon.cs
index 5f62759ce..4b99e60c0 100644
--- a/src/ImageSharp.Drawing/Paths/DrawPolygon.cs
+++ b/src/ImageSharp.Drawing/Paths/DrawPolygon.cs
@@ -5,12 +5,11 @@
namespace ImageSharp
{
- using System;
using System.Numerics;
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/DrawRectangle.cs b/src/ImageSharp.Drawing/Paths/DrawRectangle.cs
index 5514217ff..0fefc6cab 100644
--- a/src/ImageSharp.Drawing/Paths/DrawRectangle.cs
+++ b/src/ImageSharp.Drawing/Paths/DrawRectangle.cs
@@ -5,11 +5,10 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the type.
diff --git a/src/ImageSharp.Drawing/Paths/FillPaths.cs b/src/ImageSharp.Drawing/Paths/FillPaths.cs
index b4d0b14cb..f579c4ad0 100644
--- a/src/ImageSharp.Drawing/Paths/FillPaths.cs
+++ b/src/ImageSharp.Drawing/Paths/FillPaths.cs
@@ -5,11 +5,9 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/FillPolygon.cs b/src/ImageSharp.Drawing/Paths/FillPolygon.cs
index dfc56c5d2..3360cff13 100644
--- a/src/ImageSharp.Drawing/Paths/FillPolygon.cs
+++ b/src/ImageSharp.Drawing/Paths/FillPolygon.cs
@@ -9,7 +9,7 @@ namespace ImageSharp
using System.Numerics;
using Drawing;
using Drawing.Brushes;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
///
diff --git a/src/ImageSharp.Drawing/Paths/FillRectangle.cs b/src/ImageSharp.Drawing/Paths/FillRectangle.cs
index b20cb8971..07ff4c69c 100644
--- a/src/ImageSharp.Drawing/Paths/FillRectangle.cs
+++ b/src/ImageSharp.Drawing/Paths/FillRectangle.cs
@@ -5,10 +5,9 @@
namespace ImageSharp
{
- using System;
-
using Drawing;
using Drawing.Brushes;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the type.
diff --git a/src/ImageSharp.Drawing/Pens/IPen.cs b/src/ImageSharp.Drawing/Pens/IPen.cs
index 573a126de..31a609c8e 100644
--- a/src/ImageSharp.Drawing/Pens/IPen.cs
+++ b/src/ImageSharp.Drawing/Pens/IPen.cs
@@ -5,7 +5,7 @@
namespace ImageSharp.Drawing.Pens
{
- using System;
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Pens/Pen.cs b/src/ImageSharp.Drawing/Pens/Pen.cs
index c3a530964..a3cc3cbdf 100644
--- a/src/ImageSharp.Drawing/Pens/Pen.cs
+++ b/src/ImageSharp.Drawing/Pens/Pen.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Pens
{
+ using ImageSharp.PixelFormats;
+
///
/// Represents a in the color space.
///
diff --git a/src/ImageSharp.Drawing/Pens/Pens.cs b/src/ImageSharp.Drawing/Pens/Pens.cs
index 532774f22..5c91df226 100644
--- a/src/ImageSharp.Drawing/Pens/Pens.cs
+++ b/src/ImageSharp.Drawing/Pens/Pens.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Pens
{
+ using ImageSharp.PixelFormats;
+
///
/// Common Pen styles
///
diff --git a/src/ImageSharp.Drawing/Pens/Pens{TPixel}.cs b/src/ImageSharp.Drawing/Pens/Pens{TPixel}.cs
index 096262f44..5eb78dc44 100644
--- a/src/ImageSharp.Drawing/Pens/Pens{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Pens/Pens{TPixel}.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Drawing.Pens
{
+ using ImageSharp.PixelFormats;
+
///
/// Common Pen styles
///
diff --git a/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs b/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs
index 05af44ca3..f49d03cbc 100644
--- a/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs
+++ b/src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs
@@ -5,10 +5,10 @@
namespace ImageSharp.Drawing.Pens
{
- using System;
using System.Numerics;
using ImageSharp.Drawing.Brushes;
+ using ImageSharp.PixelFormats;
using Processors;
///
diff --git a/src/ImageSharp.Drawing/Pens/Processors/ColoredPointInfo.cs b/src/ImageSharp.Drawing/Pens/Processors/ColoredPointInfo.cs
index edee5bb19..65a8a6131 100644
--- a/src/ImageSharp.Drawing/Pens/Processors/ColoredPointInfo.cs
+++ b/src/ImageSharp.Drawing/Pens/Processors/ColoredPointInfo.cs
@@ -5,7 +5,7 @@
namespace ImageSharp.Drawing.Processors
{
- using System;
+ using ImageSharp.PixelFormats;
///
/// Returns details about how far away from the inside of a shape and the color the pixel could be.
diff --git a/src/ImageSharp.Drawing/Pens/Processors/PenApplicator.cs b/src/ImageSharp.Drawing/Pens/Processors/PenApplicator.cs
index 7e9671cac..ac1889068 100644
--- a/src/ImageSharp.Drawing/Pens/Processors/PenApplicator.cs
+++ b/src/ImageSharp.Drawing/Pens/Processors/PenApplicator.cs
@@ -6,7 +6,7 @@
namespace ImageSharp.Drawing.Processors
{
using System;
- using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// primitive that converts a into a color and a distance away from the drawable part of the path.
diff --git a/src/ImageSharp.Drawing/Processors/DrawImageProcessor.cs b/src/ImageSharp.Drawing/Processors/DrawImageProcessor.cs
index 9bb452f19..e2a9ef024 100644
--- a/src/ImageSharp.Drawing/Processors/DrawImageProcessor.cs
+++ b/src/ImageSharp.Drawing/Processors/DrawImageProcessor.cs
@@ -8,7 +8,7 @@ namespace ImageSharp.Drawing.Processors
using System;
using System.Numerics;
using System.Threading.Tasks;
-
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
///
diff --git a/src/ImageSharp.Drawing/Processors/DrawPathProcessor.cs b/src/ImageSharp.Drawing/Processors/DrawPathProcessor.cs
index 32e44bce9..62e366d2a 100644
--- a/src/ImageSharp.Drawing/Processors/DrawPathProcessor.cs
+++ b/src/ImageSharp.Drawing/Processors/DrawPathProcessor.cs
@@ -8,7 +8,7 @@ namespace ImageSharp.Drawing.Processors
using System;
using System.Numerics;
using System.Threading.Tasks;
-
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
using Pens;
diff --git a/src/ImageSharp.Drawing/Processors/FillProcessor.cs b/src/ImageSharp.Drawing/Processors/FillProcessor.cs
index d0ad0cc1d..ca2dc9982 100644
--- a/src/ImageSharp.Drawing/Processors/FillProcessor.cs
+++ b/src/ImageSharp.Drawing/Processors/FillProcessor.cs
@@ -10,6 +10,7 @@ namespace ImageSharp.Drawing.Processors
using System.Threading.Tasks;
using Drawing;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
///
diff --git a/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs b/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs
index 88830f094..af1e6fa89 100644
--- a/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs
+++ b/src/ImageSharp.Drawing/Processors/FillRegionProcessor.cs
@@ -7,9 +7,8 @@ namespace ImageSharp.Drawing.Processors
{
using System;
using System.Buffers;
- using System.Numerics;
- using System.Threading.Tasks;
using Drawing;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
///
diff --git a/src/ImageSharp.Drawing/Text/DrawText.cs b/src/ImageSharp.Drawing/Text/DrawText.cs
index 93486e2bb..876d17aca 100644
--- a/src/ImageSharp.Drawing/Text/DrawText.cs
+++ b/src/ImageSharp.Drawing/Text/DrawText.cs
@@ -10,7 +10,7 @@ namespace ImageSharp
using Drawing;
using Drawing.Brushes;
using Drawing.Pens;
-
+ using ImageSharp.PixelFormats;
using SixLabors.Fonts;
///
diff --git a/src/ImageSharp/Colors/Spaces/Bgra32.cs b/src/ImageSharp/Colors/Spaces/Bgra32.cs
index e498bd792..b1f72033d 100644
--- a/src/ImageSharp/Colors/Spaces/Bgra32.cs
+++ b/src/ImageSharp/Colors/Spaces/Bgra32.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents an BGRA (blue, green, red, alpha) color.
diff --git a/src/ImageSharp/Colors/Spaces/CieLab.cs b/src/ImageSharp/Colors/Spaces/CieLab.cs
index dda211a2c..c1e5cba5a 100644
--- a/src/ImageSharp/Colors/Spaces/CieLab.cs
+++ b/src/ImageSharp/Colors/Spaces/CieLab.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents an CIE LAB 1976 color.
diff --git a/src/ImageSharp/Colors/Spaces/CieXyz.cs b/src/ImageSharp/Colors/Spaces/CieXyz.cs
index 6b73d82f9..9c6c9bf60 100644
--- a/src/ImageSharp/Colors/Spaces/CieXyz.cs
+++ b/src/ImageSharp/Colors/Spaces/CieXyz.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents an CIE 1931 color
diff --git a/src/ImageSharp/Colors/Spaces/Cmyk.cs b/src/ImageSharp/Colors/Spaces/Cmyk.cs
index 1d6e83142..4ca9f018c 100644
--- a/src/ImageSharp/Colors/Spaces/Cmyk.cs
+++ b/src/ImageSharp/Colors/Spaces/Cmyk.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents an CMYK (cyan, magenta, yellow, keyline) color.
diff --git a/src/ImageSharp/Colors/Spaces/Hsl.cs b/src/ImageSharp/Colors/Spaces/Hsl.cs
index 220234537..de706c350 100644
--- a/src/ImageSharp/Colors/Spaces/Hsl.cs
+++ b/src/ImageSharp/Colors/Spaces/Hsl.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents a Hsl (hue, saturation, lightness) color.
diff --git a/src/ImageSharp/Colors/Spaces/Hsv.cs b/src/ImageSharp/Colors/Spaces/Hsv.cs
index 1b9aa4777..2b3d79afe 100644
--- a/src/ImageSharp/Colors/Spaces/Hsv.cs
+++ b/src/ImageSharp/Colors/Spaces/Hsv.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents a HSV (hue, saturation, value) color. Also known as HSB (hue, saturation, brightness).
diff --git a/src/ImageSharp/Colors/Spaces/YCbCr.cs b/src/ImageSharp/Colors/Spaces/YCbCr.cs
index f483c0827..06696af9e 100644
--- a/src/ImageSharp/Colors/Spaces/YCbCr.cs
+++ b/src/ImageSharp/Colors/Spaces/YCbCr.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Colors.Spaces
using System;
using System.ComponentModel;
using System.Numerics;
+ using ImageSharp.PixelFormats;
///
/// Represents an YCbCr (luminance, blue chroma, red chroma) color conforming to the full range standard used in digital imaging systems.
diff --git a/src/ImageSharp/Common/Extensions/Vector4Extensions.cs b/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
index d9e30e654..31f3f32ae 100644
--- a/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
+++ b/src/ImageSharp/Common/Extensions/Vector4Extensions.cs
@@ -8,6 +8,7 @@ namespace ImageSharp
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// Extension methods for the struct.
diff --git a/src/ImageSharp/Common/Helpers/ImageMaths.cs b/src/ImageSharp/Common/Helpers/ImageMaths.cs
index 6583fb724..cf0ac5c29 100644
--- a/src/ImageSharp/Common/Helpers/ImageMaths.cs
+++ b/src/ImageSharp/Common/Helpers/ImageMaths.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using System.Numerics;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
+
///
/// Provides common mathematical methods.
///
diff --git a/src/ImageSharp/Common/Memory/PixelDataPool{T}.cs b/src/ImageSharp/Common/Memory/PixelDataPool{T}.cs
index 8bb446535..0ec367d24 100644
--- a/src/ImageSharp/Common/Memory/PixelDataPool{T}.cs
+++ b/src/ImageSharp/Common/Memory/PixelDataPool{T}.cs
@@ -8,6 +8,8 @@ namespace ImageSharp
using System;
using System.Buffers;
+ using ImageSharp.PixelFormats;
+
///
/// Provides a resource pool that enables reusing instances of value type arrays for image data .
///
diff --git a/src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuser.cs b/src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuser.cs
index af78c8f86..5d0ecde6b 100644
--- a/src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuser.cs
+++ b/src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuser.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Dithering
using System.Numerics;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
+
///
/// The base class for performing error diffusion based dithering.
///
diff --git a/src/ImageSharp/Dithering/ErrorDiffusion/IErrorDiffuser.cs b/src/ImageSharp/Dithering/ErrorDiffusion/IErrorDiffuser.cs
index f7a13984a..f49e7e62d 100644
--- a/src/ImageSharp/Dithering/ErrorDiffusion/IErrorDiffuser.cs
+++ b/src/ImageSharp/Dithering/ErrorDiffusion/IErrorDiffuser.cs
@@ -5,7 +5,7 @@
namespace ImageSharp.Dithering
{
- using System;
+ using ImageSharp.PixelFormats;
///
/// Encapsulates properties and methods required to perfom diffused error dithering on an image.
diff --git a/src/ImageSharp/Dithering/Ordered/IOrderedDither.cs b/src/ImageSharp/Dithering/Ordered/IOrderedDither.cs
index 0762f61a7..3f7cf4988 100644
--- a/src/ImageSharp/Dithering/Ordered/IOrderedDither.cs
+++ b/src/ImageSharp/Dithering/Ordered/IOrderedDither.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Dithering
{
+ using ImageSharp.PixelFormats;
+
///
/// Encapsulates properties and methods required to perfom ordered dithering on an image.
///
diff --git a/src/ImageSharp/Dithering/Ordered/OrderedDither4x4.cs b/src/ImageSharp/Dithering/Ordered/OrderedDither4x4.cs
index ce0ae1d97..917f57318 100644
--- a/src/ImageSharp/Dithering/Ordered/OrderedDither4x4.cs
+++ b/src/ImageSharp/Dithering/Ordered/OrderedDither4x4.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Dithering.Ordered
{
+ using ImageSharp.PixelFormats;
+
///
/// The base class for performing ordered ditheroing using a 4x4 matrix.
///
diff --git a/src/ImageSharp/Formats/Bmp/BmpDecoder.cs b/src/ImageSharp/Formats/Bmp/BmpDecoder.cs
index 94f045efa..9090e9a8c 100644
--- a/src/ImageSharp/Formats/Bmp/BmpDecoder.cs
+++ b/src/ImageSharp/Formats/Bmp/BmpDecoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Image decoder for generating an image out of a Windows bitmap stream.
///
diff --git a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
index 9f15bf0b2..a9aac5efa 100644
--- a/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
+++ b/src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Performs the bmp decoding operation.
///
diff --git a/src/ImageSharp/Formats/Bmp/BmpEncoder.cs b/src/ImageSharp/Formats/Bmp/BmpEncoder.cs
index deca6cf2c..dc2bc0e97 100644
--- a/src/ImageSharp/Formats/Bmp/BmpEncoder.cs
+++ b/src/ImageSharp/Formats/Bmp/BmpEncoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Image encoder for writing an image to a stream as a Windows bitmap.
///
diff --git a/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs b/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
index 634b3a784..617edde8e 100644
--- a/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
+++ b/src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
using IO;
///
diff --git a/src/ImageSharp/Formats/Bmp/ImageExtensions.cs b/src/ImageSharp/Formats/Bmp/ImageExtensions.cs
index 14d657c32..aba24f999 100644
--- a/src/ImageSharp/Formats/Bmp/ImageExtensions.cs
+++ b/src/ImageSharp/Formats/Bmp/ImageExtensions.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Extension methods for the type.
///
diff --git a/src/ImageSharp/Formats/Gif/GifDecoder.cs b/src/ImageSharp/Formats/Gif/GifDecoder.cs
index 4ba06efe8..88aaccf6a 100644
--- a/src/ImageSharp/Formats/Gif/GifDecoder.cs
+++ b/src/ImageSharp/Formats/Gif/GifDecoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Decoder for generating an image out of a gif encoded stream.
///
diff --git a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs
index 1ee2d152a..93d0bcaf1 100644
--- a/src/ImageSharp/Formats/Gif/GifDecoderCore.cs
+++ b/src/ImageSharp/Formats/Gif/GifDecoderCore.cs
@@ -10,6 +10,8 @@ namespace ImageSharp.Formats
using System.IO;
using System.Text;
+ using ImageSharp.PixelFormats;
+
///
/// Performs the gif decoding operation.
///
diff --git a/src/ImageSharp/Formats/Gif/GifEncoder.cs b/src/ImageSharp/Formats/Gif/GifEncoder.cs
index 005ec1ee2..b5cadd834 100644
--- a/src/ImageSharp/Formats/Gif/GifEncoder.cs
+++ b/src/ImageSharp/Formats/Gif/GifEncoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Image encoder for writing image data to a stream in gif format.
///
diff --git a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
index dec0dc411..82f32323e 100644
--- a/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
+++ b/src/ImageSharp/Formats/Gif/GifEncoderCore.cs
@@ -10,6 +10,8 @@ namespace ImageSharp.Formats
using System.IO;
using System.Linq;
+ using ImageSharp.PixelFormats;
+
using IO;
using Quantizers;
diff --git a/src/ImageSharp/Formats/Gif/ImageExtensions.cs b/src/ImageSharp/Formats/Gif/ImageExtensions.cs
index 523086ded..d64203f6c 100644
--- a/src/ImageSharp/Formats/Gif/ImageExtensions.cs
+++ b/src/ImageSharp/Formats/Gif/ImageExtensions.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Extension methods for the type.
///
diff --git a/src/ImageSharp/Formats/IImageDecoder.cs b/src/ImageSharp/Formats/IImageDecoder.cs
index 2f71108a7..4fd25df13 100644
--- a/src/ImageSharp/Formats/IImageDecoder.cs
+++ b/src/ImageSharp/Formats/IImageDecoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Encapsulates properties and methods required for decoding an image from a stream.
///
diff --git a/src/ImageSharp/Formats/IImageEncoder.cs b/src/ImageSharp/Formats/IImageEncoder.cs
index 222fb6ed6..a28511c17 100644
--- a/src/ImageSharp/Formats/IImageEncoder.cs
+++ b/src/ImageSharp/Formats/IImageEncoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Encapsulates properties and methods required for encoding an image to a stream.
///
diff --git a/src/ImageSharp/Formats/Jpeg/ImageExtensions.cs b/src/ImageSharp/Formats/Jpeg/ImageExtensions.cs
index e52d43625..420af6b74 100644
--- a/src/ImageSharp/Formats/Jpeg/ImageExtensions.cs
+++ b/src/ImageSharp/Formats/Jpeg/ImageExtensions.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Extension methods for the type.
///
diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs
index 97593a0a3..56d025504 100644
--- a/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs
+++ b/src/ImageSharp/Formats/Jpeg/JpegDecoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Image decoder for generating an image out of a jpg stream.
///
diff --git a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs
index ccc6b91bb..186c1e528 100644
--- a/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs
+++ b/src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs
@@ -11,6 +11,7 @@ namespace ImageSharp.Formats
using System.Threading.Tasks;
using ImageSharp.Formats.Jpg;
+ using ImageSharp.PixelFormats;
///
/// Performs the jpeg decoding operation.
diff --git a/src/ImageSharp/Formats/Jpeg/JpegEncoder.cs b/src/ImageSharp/Formats/Jpeg/JpegEncoder.cs
index dd467462b..152fd2c64 100644
--- a/src/ImageSharp/Formats/Jpeg/JpegEncoder.cs
+++ b/src/ImageSharp/Formats/Jpeg/JpegEncoder.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Formats
{
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Encoder for writing the data image to a stream in jpeg format.
///
diff --git a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
index e29b5474b..eb083c35d 100644
--- a/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
+++ b/src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
@@ -12,6 +12,7 @@ namespace ImageSharp.Formats
using ImageSharp.Formats.Jpg;
using ImageSharp.Formats.Jpg.Components;
+ using ImageSharp.PixelFormats;
///
/// Image encoder for writing an image to a stream as a jpeg.
diff --git a/src/ImageSharp/Formats/Jpeg/Utils/JpegUtils.cs b/src/ImageSharp/Formats/Jpeg/Utils/JpegUtils.cs
index 73918c060..afb8e0700 100644
--- a/src/ImageSharp/Formats/Jpeg/Utils/JpegUtils.cs
+++ b/src/ImageSharp/Formats/Jpeg/Utils/JpegUtils.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats.Jpg
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+ using ImageSharp.PixelFormats;
+
///
/// Jpeg specific utilities and extension methods
///
diff --git a/src/ImageSharp/Formats/Png/ImageExtensions.cs b/src/ImageSharp/Formats/Png/ImageExtensions.cs
index 277a3397e..44f242b3f 100644
--- a/src/ImageSharp/Formats/Png/ImageExtensions.cs
+++ b/src/ImageSharp/Formats/Png/ImageExtensions.cs
@@ -9,6 +9,8 @@ namespace ImageSharp
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Extension methods for the type.
///
diff --git a/src/ImageSharp/Formats/Png/PngDecoder.cs b/src/ImageSharp/Formats/Png/PngDecoder.cs
index 8dd9168f4..3a34147e2 100644
--- a/src/ImageSharp/Formats/Png/PngDecoder.cs
+++ b/src/ImageSharp/Formats/Png/PngDecoder.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Formats
using System;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Encoder for generating an image out of a png encoded stream.
///
diff --git a/src/ImageSharp/Formats/Png/PngDecoderCore.cs b/src/ImageSharp/Formats/Png/PngDecoderCore.cs
index d64978385..58cfa6a70 100644
--- a/src/ImageSharp/Formats/Png/PngDecoderCore.cs
+++ b/src/ImageSharp/Formats/Png/PngDecoderCore.cs
@@ -12,6 +12,8 @@ namespace ImageSharp.Formats
using System.Linq;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
+
using static ComparableExtensions;
///
diff --git a/src/ImageSharp/Formats/Png/PngEncoder.cs b/src/ImageSharp/Formats/Png/PngEncoder.cs
index a74916f2f..e7b6bf30e 100644
--- a/src/ImageSharp/Formats/Png/PngEncoder.cs
+++ b/src/ImageSharp/Formats/Png/PngEncoder.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Formats
{
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Image encoder for writing image data to a stream in png format.
///
diff --git a/src/ImageSharp/Formats/Png/PngEncoderCore.cs b/src/ImageSharp/Formats/Png/PngEncoderCore.cs
index e17902b5a..e30f9791e 100644
--- a/src/ImageSharp/Formats/Png/PngEncoderCore.cs
+++ b/src/ImageSharp/Formats/Png/PngEncoderCore.cs
@@ -10,6 +10,8 @@ namespace ImageSharp.Formats
using System.IO;
using System.Linq;
+ using ImageSharp.PixelFormats;
+
using Quantizers;
using static ComparableExtensions;
diff --git a/src/ImageSharp/Image.Create.cs b/src/ImageSharp/Image.Create.cs
index 5fcb2fa21..3d92cd66b 100644
--- a/src/ImageSharp/Image.Create.cs
+++ b/src/ImageSharp/Image.Create.cs
@@ -5,6 +5,8 @@
namespace ImageSharp
{
+ using ImageSharp.PixelFormats;
+
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
/// packed into a single unsigned integer value.
diff --git a/src/ImageSharp/Image.Decode.cs b/src/ImageSharp/Image.Decode.cs
index 5e060ab6b..b0e476280 100644
--- a/src/ImageSharp/Image.Decode.cs
+++ b/src/ImageSharp/Image.Decode.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using System.Linq;
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
/// packed into a single unsigned integer value.
diff --git a/src/ImageSharp/Image.FromBytes.cs b/src/ImageSharp/Image.FromBytes.cs
index b2f39aae6..540eb6016 100644
--- a/src/ImageSharp/Image.FromBytes.cs
+++ b/src/ImageSharp/Image.FromBytes.cs
@@ -9,6 +9,8 @@ namespace ImageSharp
using System.IO;
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
/// packed into a single unsigned integer value.
diff --git a/src/ImageSharp/Image.FromFile.cs b/src/ImageSharp/Image.FromFile.cs
index b21307aba..8f4c9138b 100644
--- a/src/ImageSharp/Image.FromFile.cs
+++ b/src/ImageSharp/Image.FromFile.cs
@@ -9,6 +9,7 @@ namespace ImageSharp
using System;
using System.IO;
using Formats;
+ using ImageSharp.PixelFormats;
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
diff --git a/src/ImageSharp/Image.FromStream.cs b/src/ImageSharp/Image.FromStream.cs
index 8fb1fac4e..a34c6b7b3 100644
--- a/src/ImageSharp/Image.FromStream.cs
+++ b/src/ImageSharp/Image.FromStream.cs
@@ -7,9 +7,12 @@ namespace ImageSharp
{
using System;
using System.IO;
+ using System.Numerics;
using System.Text;
using Formats;
+ using ImageSharp.PixelFormats;
+
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
/// packed into a single unsigned integer value.
diff --git a/src/ImageSharp/Image.cs b/src/ImageSharp/Image.cs
index 2562246a9..3d33e6263 100644
--- a/src/ImageSharp/Image.cs
+++ b/src/ImageSharp/Image.cs
@@ -6,6 +6,7 @@
namespace ImageSharp
{
using System.Diagnostics;
+ using ImageSharp.PixelFormats;
///
/// Represents an image. Each pixel is a made up four 8-bit components red, green, blue, and alpha
diff --git a/src/ImageSharp/Image/IImageBase{TPixel}.cs b/src/ImageSharp/Image/IImageBase{TPixel}.cs
index d95e52337..08d25709b 100644
--- a/src/ImageSharp/Image/IImageBase{TPixel}.cs
+++ b/src/ImageSharp/Image/IImageBase{TPixel}.cs
@@ -6,6 +6,7 @@
namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
///
/// Encapsulates the basic properties and methods required to manipulate images in varying formats.
diff --git a/src/ImageSharp/Image/IImageProcessor.cs b/src/ImageSharp/Image/IImageProcessor.cs
index cf442cd6c..c4fa9afa2 100644
--- a/src/ImageSharp/Image/IImageProcessor.cs
+++ b/src/ImageSharp/Image/IImageProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Encapsulates methods to alter the pixels of an image.
///
diff --git a/src/ImageSharp/Image/ImageBase{TPixel}.cs b/src/ImageSharp/Image/ImageBase{TPixel}.cs
index b55b88f60..7bad03cc8 100644
--- a/src/ImageSharp/Image/ImageBase{TPixel}.cs
+++ b/src/ImageSharp/Image/ImageBase{TPixel}.cs
@@ -7,6 +7,7 @@ namespace ImageSharp
{
using System;
using System.Diagnostics;
+ using ImageSharp.PixelFormats;
using Processing;
///
diff --git a/src/ImageSharp/Image/ImageFrame{TPixel}.cs b/src/ImageSharp/Image/ImageFrame{TPixel}.cs
index e85177f59..e502950d0 100644
--- a/src/ImageSharp/Image/ImageFrame{TPixel}.cs
+++ b/src/ImageSharp/Image/ImageFrame{TPixel}.cs
@@ -8,6 +8,7 @@ namespace ImageSharp
using System;
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
///
/// Represents a single frame in a animation.
diff --git a/src/ImageSharp/Image/ImageProcessingExtensions.cs b/src/ImageSharp/Image/ImageProcessingExtensions.cs
index 405cb48b4..c9577ac15 100644
--- a/src/ImageSharp/Image/ImageProcessingExtensions.cs
+++ b/src/ImageSharp/Image/ImageProcessingExtensions.cs
@@ -5,6 +5,8 @@
namespace ImageSharp
{
+ using ImageSharp.PixelFormats;
+
using Processing;
///
diff --git a/src/ImageSharp/Image/Image{TPixel}.cs b/src/ImageSharp/Image/Image{TPixel}.cs
index 88fb04226..f49943b53 100644
--- a/src/ImageSharp/Image/Image{TPixel}.cs
+++ b/src/ImageSharp/Image/Image{TPixel}.cs
@@ -14,6 +14,7 @@ namespace ImageSharp
using System.Threading.Tasks;
using Formats;
+ using ImageSharp.PixelFormats;
using Processing;
///
diff --git a/src/ImageSharp/Image/PixelAccessor{TPixel}.cs b/src/ImageSharp/Image/PixelAccessor{TPixel}.cs
index f3f9546fd..3c6763886 100644
--- a/src/ImageSharp/Image/PixelAccessor{TPixel}.cs
+++ b/src/ImageSharp/Image/PixelAccessor{TPixel}.cs
@@ -9,6 +9,7 @@ namespace ImageSharp
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
///
/// Provides per-pixel access to generic pixels.
diff --git a/src/ImageSharp/Image/PixelArea{TPixel}.cs b/src/ImageSharp/Image/PixelArea{TPixel}.cs
index 936fc16b3..3dd187768 100644
--- a/src/ImageSharp/Image/PixelArea{TPixel}.cs
+++ b/src/ImageSharp/Image/PixelArea{TPixel}.cs
@@ -8,7 +8,7 @@ namespace ImageSharp
using System;
using System.Diagnostics;
using System.IO;
- using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// Represents an area of generic pixels.
diff --git a/src/ImageSharp/ImageProcessor.cs b/src/ImageSharp/ImageProcessor.cs
index fd577ed22..7b9f74547 100644
--- a/src/ImageSharp/ImageProcessor.cs
+++ b/src/ImageSharp/ImageProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Allows the application of processors to images.
///
diff --git a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
index 89c0b9c5c..f65c02043 100644
--- a/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
+++ b/src/ImageSharp/MetaData/Profiles/Exif/ExifProfile.cs
@@ -10,6 +10,8 @@ namespace ImageSharp
using System.Collections.ObjectModel;
using System.IO;
+ using ImageSharp.PixelFormats;
+
///
/// Represents an EXIF profile providing access to the collection of values.
///
diff --git a/src/ImageSharp/Colors/PackedPixel/Alpha8.cs b/src/ImageSharp/PixelFormats/Alpha8.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Alpha8.cs
rename to src/ImageSharp/PixelFormats/Alpha8.cs
index 9a340544c..a7b464b1a 100644
--- a/src/ImageSharp/Colors/PackedPixel/Alpha8.cs
+++ b/src/ImageSharp/PixelFormats/Alpha8.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/Argb32.cs b/src/ImageSharp/PixelFormats/Argb32.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Argb32.cs
rename to src/ImageSharp/PixelFormats/Argb32.cs
index 64255a53b..3cad9e957 100644
--- a/src/ImageSharp/Colors/PackedPixel/Argb32.cs
+++ b/src/ImageSharp/PixelFormats/Argb32.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/Bgr565.cs b/src/ImageSharp/PixelFormats/Bgr565.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Bgr565.cs
rename to src/ImageSharp/PixelFormats/Bgr565.cs
index 2975d4ad9..f99b55816 100644
--- a/src/ImageSharp/Colors/PackedPixel/Bgr565.cs
+++ b/src/ImageSharp/PixelFormats/Bgr565.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/Bgra4444.cs b/src/ImageSharp/PixelFormats/Bgra4444.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Bgra4444.cs
rename to src/ImageSharp/PixelFormats/Bgra4444.cs
index 1346a54ef..ea188e7c5 100644
--- a/src/ImageSharp/Colors/PackedPixel/Bgra4444.cs
+++ b/src/ImageSharp/PixelFormats/Bgra4444.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/Bgra5551.cs b/src/ImageSharp/PixelFormats/Bgra5551.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Bgra5551.cs
rename to src/ImageSharp/PixelFormats/Bgra5551.cs
index 7989804cf..8ae1cd430 100644
--- a/src/ImageSharp/Colors/PackedPixel/Bgra5551.cs
+++ b/src/ImageSharp/PixelFormats/Bgra5551.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/BulkPixelOperations{TPixel}.cs b/src/ImageSharp/PixelFormats/BulkPixelOperations{TPixel}.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/BulkPixelOperations{TPixel}.cs
rename to src/ImageSharp/PixelFormats/BulkPixelOperations{TPixel}.cs
index d58e48ffd..9a3d266c1 100644
--- a/src/ImageSharp/Colors/PackedPixel/BulkPixelOperations{TPixel}.cs
+++ b/src/ImageSharp/PixelFormats/BulkPixelOperations{TPixel}.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/Byte4.cs b/src/ImageSharp/PixelFormats/Byte4.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Byte4.cs
rename to src/ImageSharp/PixelFormats/Byte4.cs
index 11ec5eaf4..884f8331b 100644
--- a/src/ImageSharp/Colors/PackedPixel/Byte4.cs
+++ b/src/ImageSharp/PixelFormats/Byte4.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/ColorBuilder{TPixel}.cs b/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs
similarity index 99%
rename from src/ImageSharp/Colors/ColorBuilder{TPixel}.cs
rename to src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs
index 3021cb39e..4b21130c0 100644
--- a/src/ImageSharp/Colors/ColorBuilder{TPixel}.cs
+++ b/src/ImageSharp/PixelFormats/ColorBuilder{TPixel}.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Globalization;
diff --git a/src/ImageSharp/Colors/ColorConstants.cs b/src/ImageSharp/PixelFormats/ColorConstants.cs
similarity index 99%
rename from src/ImageSharp/Colors/ColorConstants.cs
rename to src/ImageSharp/PixelFormats/ColorConstants.cs
index 3dba721aa..236d3a889 100644
--- a/src/ImageSharp/Colors/ColorConstants.cs
+++ b/src/ImageSharp/PixelFormats/ColorConstants.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp/Colors/ComponentOrder.cs b/src/ImageSharp/PixelFormats/ComponentOrder.cs
similarity index 96%
rename from src/ImageSharp/Colors/ComponentOrder.cs
rename to src/ImageSharp/PixelFormats/ComponentOrder.cs
index c3e70b957..8f151b41d 100644
--- a/src/ImageSharp/Colors/ComponentOrder.cs
+++ b/src/ImageSharp/PixelFormats/ComponentOrder.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
///
/// Enumerates the various component orders.
diff --git a/src/ImageSharp/Colors/PackedPixel/HalfSingle.cs b/src/ImageSharp/PixelFormats/HalfSingle.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/HalfSingle.cs
rename to src/ImageSharp/PixelFormats/HalfSingle.cs
index 4c785a863..c9a27382a 100644
--- a/src/ImageSharp/Colors/PackedPixel/HalfSingle.cs
+++ b/src/ImageSharp/PixelFormats/HalfSingle.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/HalfTypeHelper.cs b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/HalfTypeHelper.cs
rename to src/ImageSharp/PixelFormats/HalfTypeHelper.cs
index a19b51323..740795adc 100644
--- a/src/ImageSharp/Colors/PackedPixel/HalfTypeHelper.cs
+++ b/src/ImageSharp/PixelFormats/HalfTypeHelper.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/HalfVector2.cs b/src/ImageSharp/PixelFormats/HalfVector2.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/HalfVector2.cs
rename to src/ImageSharp/PixelFormats/HalfVector2.cs
index d06ab6ba0..85feea582 100644
--- a/src/ImageSharp/Colors/PackedPixel/HalfVector2.cs
+++ b/src/ImageSharp/PixelFormats/HalfVector2.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/HalfVector4.cs b/src/ImageSharp/PixelFormats/HalfVector4.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/HalfVector4.cs
rename to src/ImageSharp/PixelFormats/HalfVector4.cs
index a5fa796e1..ef844253b 100644
--- a/src/ImageSharp/Colors/PackedPixel/HalfVector4.cs
+++ b/src/ImageSharp/PixelFormats/HalfVector4.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/IPackedVector{TPacked}.cs b/src/ImageSharp/PixelFormats/IPackedVector{TPacked}.cs
similarity index 94%
rename from src/ImageSharp/Colors/PackedPixel/IPackedVector{TPacked}.cs
rename to src/ImageSharp/PixelFormats/IPackedVector{TPacked}.cs
index 0450fb8fb..ec283e6f2 100644
--- a/src/ImageSharp/Colors/PackedPixel/IPackedVector{TPacked}.cs
+++ b/src/ImageSharp/PixelFormats/IPackedVector{TPacked}.cs
@@ -3,10 +3,9 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
- using System.Numerics;
///
/// This interface exists for ensuring signature compatibility to MonoGame and XNA packed color types.
diff --git a/src/ImageSharp/Colors/PackedPixel/IPixel.cs b/src/ImageSharp/PixelFormats/IPixel.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/IPixel.cs
rename to src/ImageSharp/PixelFormats/IPixel.cs
index 08f2eafb0..43fe81e95 100644
--- a/src/ImageSharp/Colors/PackedPixel/IPixel.cs
+++ b/src/ImageSharp/PixelFormats/IPixel.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/NamedColors{TPixel}.cs b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs
similarity index 99%
rename from src/ImageSharp/Colors/NamedColors{TPixel}.cs
rename to src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs
index ee87dd00f..0b55dcbf9 100644
--- a/src/ImageSharp/Colors/NamedColors{TPixel}.cs
+++ b/src/ImageSharp/PixelFormats/NamedColors{TPixel}.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
///
/// A set of named colors mapped to the provided color space.
diff --git a/src/ImageSharp/Colors/PackedPixel/NormalizedByte2.cs b/src/ImageSharp/PixelFormats/NormalizedByte2.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/NormalizedByte2.cs
rename to src/ImageSharp/PixelFormats/NormalizedByte2.cs
index 56be64a86..779b26a7a 100644
--- a/src/ImageSharp/Colors/PackedPixel/NormalizedByte2.cs
+++ b/src/ImageSharp/PixelFormats/NormalizedByte2.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/NormalizedByte4.cs b/src/ImageSharp/PixelFormats/NormalizedByte4.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/NormalizedByte4.cs
rename to src/ImageSharp/PixelFormats/NormalizedByte4.cs
index a1f9b8d84..f7fe36cea 100644
--- a/src/ImageSharp/Colors/PackedPixel/NormalizedByte4.cs
+++ b/src/ImageSharp/PixelFormats/NormalizedByte4.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/NormalizedShort2.cs b/src/ImageSharp/PixelFormats/NormalizedShort2.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/NormalizedShort2.cs
rename to src/ImageSharp/PixelFormats/NormalizedShort2.cs
index 46c24be6f..f0fba66e5 100644
--- a/src/ImageSharp/Colors/PackedPixel/NormalizedShort2.cs
+++ b/src/ImageSharp/PixelFormats/NormalizedShort2.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/NormalizedShort4.cs b/src/ImageSharp/PixelFormats/NormalizedShort4.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/NormalizedShort4.cs
rename to src/ImageSharp/PixelFormats/NormalizedShort4.cs
index 74229a914..6701aab03 100644
--- a/src/ImageSharp/Colors/PackedPixel/NormalizedShort4.cs
+++ b/src/ImageSharp/PixelFormats/NormalizedShort4.cs
@@ -3,9 +3,8 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
- using System;
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/PackedPixelConverterHelper.cs b/src/ImageSharp/PixelFormats/PackedPixelConverterHelper.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/PackedPixelConverterHelper.cs
rename to src/ImageSharp/PixelFormats/PackedPixelConverterHelper.cs
index 16d73f785..29ef5675e 100644
--- a/src/ImageSharp/Colors/PackedPixel/PackedPixelConverterHelper.cs
+++ b/src/ImageSharp/PixelFormats/PackedPixelConverterHelper.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/README.md b/src/ImageSharp/PixelFormats/README.md
similarity index 100%
rename from src/ImageSharp/Colors/PackedPixel/README.md
rename to src/ImageSharp/PixelFormats/README.md
diff --git a/src/ImageSharp/Colors/PackedPixel/Rg32.cs b/src/ImageSharp/PixelFormats/Rg32.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Rg32.cs
rename to src/ImageSharp/PixelFormats/Rg32.cs
index f8486f7f2..b0134d9b6 100644
--- a/src/ImageSharp/Colors/PackedPixel/Rg32.cs
+++ b/src/ImageSharp/PixelFormats/Rg32.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/Rgba1010102.cs b/src/ImageSharp/PixelFormats/Rgba1010102.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Rgba1010102.cs
rename to src/ImageSharp/PixelFormats/Rgba1010102.cs
index 65a5e7a5f..f014dbb8d 100644
--- a/src/ImageSharp/Colors/PackedPixel/Rgba1010102.cs
+++ b/src/ImageSharp/PixelFormats/Rgba1010102.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/Rgba32.BulkOperations.cs b/src/ImageSharp/PixelFormats/Rgba32.BulkOperations.cs
similarity index 99%
rename from src/ImageSharp/Colors/Rgba32.BulkOperations.cs
rename to src/ImageSharp/PixelFormats/Rgba32.BulkOperations.cs
index e35de0ad5..42b37bebd 100644
--- a/src/ImageSharp/Colors/Rgba32.BulkOperations.cs
+++ b/src/ImageSharp/PixelFormats/Rgba32.BulkOperations.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/Rgba32.ColorspaceTransforms.cs b/src/ImageSharp/PixelFormats/Rgba32.ColorspaceTransforms.cs
similarity index 99%
rename from src/ImageSharp/Colors/Rgba32.ColorspaceTransforms.cs
rename to src/ImageSharp/PixelFormats/Rgba32.ColorspaceTransforms.cs
index 0e5029920..f896eb69b 100644
--- a/src/ImageSharp/Colors/Rgba32.ColorspaceTransforms.cs
+++ b/src/ImageSharp/PixelFormats/Rgba32.ColorspaceTransforms.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/Rgba32.Definitions.cs b/src/ImageSharp/PixelFormats/Rgba32.Definitions.cs
similarity index 99%
rename from src/ImageSharp/Colors/Rgba32.Definitions.cs
rename to src/ImageSharp/PixelFormats/Rgba32.Definitions.cs
index 28eb9fa0c..3ba5f6133 100644
--- a/src/ImageSharp/Colors/Rgba32.Definitions.cs
+++ b/src/ImageSharp/PixelFormats/Rgba32.Definitions.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
///
/// Packed vector type containing four 8-bit unsigned normalized values ranging from 0 to 255.
diff --git a/src/ImageSharp/Colors/Rgba32.Transforms.cs b/src/ImageSharp/PixelFormats/Rgba32.Transforms.cs
similarity index 99%
rename from src/ImageSharp/Colors/Rgba32.Transforms.cs
rename to src/ImageSharp/PixelFormats/Rgba32.Transforms.cs
index 51c130a6c..86638b814 100644
--- a/src/ImageSharp/Colors/Rgba32.Transforms.cs
+++ b/src/ImageSharp/PixelFormats/Rgba32.Transforms.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/Rgba32.cs b/src/ImageSharp/PixelFormats/Rgba32.cs
similarity index 99%
rename from src/ImageSharp/Colors/Rgba32.cs
rename to src/ImageSharp/PixelFormats/Rgba32.cs
index f04fe2560..18759bce0 100644
--- a/src/ImageSharp/Colors/Rgba32.cs
+++ b/src/ImageSharp/PixelFormats/Rgba32.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/Rgba64.cs b/src/ImageSharp/PixelFormats/Rgba64.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Rgba64.cs
rename to src/ImageSharp/PixelFormats/Rgba64.cs
index becc4d072..a5f3e087c 100644
--- a/src/ImageSharp/Colors/PackedPixel/Rgba64.cs
+++ b/src/ImageSharp/PixelFormats/Rgba64.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/RgbaComponent.cs b/src/ImageSharp/PixelFormats/RgbaComponent.cs
similarity index 100%
rename from src/ImageSharp/Colors/RgbaComponent.cs
rename to src/ImageSharp/PixelFormats/RgbaComponent.cs
diff --git a/src/ImageSharp/Colors/RgbaVector.BulkOperations.cs b/src/ImageSharp/PixelFormats/RgbaVector.BulkOperations.cs
similarity index 97%
rename from src/ImageSharp/Colors/RgbaVector.BulkOperations.cs
rename to src/ImageSharp/PixelFormats/RgbaVector.BulkOperations.cs
index e26048fc4..353412dd1 100644
--- a/src/ImageSharp/Colors/RgbaVector.BulkOperations.cs
+++ b/src/ImageSharp/PixelFormats/RgbaVector.BulkOperations.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
diff --git a/src/ImageSharp/Colors/RgbaVector.Definitions.cs b/src/ImageSharp/PixelFormats/RgbaVector.Definitions.cs
similarity index 99%
rename from src/ImageSharp/Colors/RgbaVector.Definitions.cs
rename to src/ImageSharp/PixelFormats/RgbaVector.Definitions.cs
index b0fe0faf0..61d24d191 100644
--- a/src/ImageSharp/Colors/RgbaVector.Definitions.cs
+++ b/src/ImageSharp/PixelFormats/RgbaVector.Definitions.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
///
/// Unpacked pixel type containing four 16-bit floating-point values typically ranging from 0 to 1.
diff --git a/src/ImageSharp/Colors/RgbaVector.Transforms.cs b/src/ImageSharp/PixelFormats/RgbaVector.Transforms.cs
similarity index 99%
rename from src/ImageSharp/Colors/RgbaVector.Transforms.cs
rename to src/ImageSharp/PixelFormats/RgbaVector.Transforms.cs
index a2408dcc8..03b344721 100644
--- a/src/ImageSharp/Colors/RgbaVector.Transforms.cs
+++ b/src/ImageSharp/PixelFormats/RgbaVector.Transforms.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/RgbaVector.cs b/src/ImageSharp/PixelFormats/RgbaVector.cs
similarity index 99%
rename from src/ImageSharp/Colors/RgbaVector.cs
rename to src/ImageSharp/PixelFormats/RgbaVector.cs
index 03fd25ded..df5b231f3 100644
--- a/src/ImageSharp/Colors/RgbaVector.cs
+++ b/src/ImageSharp/PixelFormats/RgbaVector.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp/Colors/PackedPixel/Short2.cs b/src/ImageSharp/PixelFormats/Short2.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Short2.cs
rename to src/ImageSharp/PixelFormats/Short2.cs
index 167a1e786..0721718ff 100644
--- a/src/ImageSharp/Colors/PackedPixel/Short2.cs
+++ b/src/ImageSharp/PixelFormats/Short2.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/PackedPixel/Short4.cs b/src/ImageSharp/PixelFormats/Short4.cs
similarity index 99%
rename from src/ImageSharp/Colors/PackedPixel/Short4.cs
rename to src/ImageSharp/PixelFormats/Short4.cs
index e1a559c32..b5b4287df 100644
--- a/src/ImageSharp/Colors/PackedPixel/Short4.cs
+++ b/src/ImageSharp/PixelFormats/Short4.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System;
using System.Numerics;
diff --git a/src/ImageSharp/Colors/Vector4BlendTransforms.cs b/src/ImageSharp/PixelFormats/Vector4BlendTransforms.cs
similarity index 99%
rename from src/ImageSharp/Colors/Vector4BlendTransforms.cs
rename to src/ImageSharp/PixelFormats/Vector4BlendTransforms.cs
index a7e2e0e91..17e1c7db5 100644
--- a/src/ImageSharp/Colors/Vector4BlendTransforms.cs
+++ b/src/ImageSharp/PixelFormats/Vector4BlendTransforms.cs
@@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
//
-namespace ImageSharp
+namespace ImageSharp.PixelFormats
{
using System.Numerics;
diff --git a/src/ImageSharp/Processing/Binarization/BinaryThreshold.cs b/src/ImageSharp/Processing/Binarization/BinaryThreshold.cs
index a704acc30..f50616aa3 100644
--- a/src/ImageSharp/Processing/Binarization/BinaryThreshold.cs
+++ b/src/ImageSharp/Processing/Binarization/BinaryThreshold.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Binarization/Dither.cs b/src/ImageSharp/Processing/Binarization/Dither.cs
index eb58fe33f..617883d6a 100644
--- a/src/ImageSharp/Processing/Binarization/Dither.cs
+++ b/src/ImageSharp/Processing/Binarization/Dither.cs
@@ -8,6 +8,7 @@ namespace ImageSharp
using System;
using ImageSharp.Dithering;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/ColorMatrix/BlackWhite.cs b/src/ImageSharp/Processing/ColorMatrix/BlackWhite.cs
index 767c72eea..76977455a 100644
--- a/src/ImageSharp/Processing/ColorMatrix/BlackWhite.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/BlackWhite.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/ColorBlindness.cs b/src/ImageSharp/Processing/ColorMatrix/ColorBlindness.cs
index 784d52cce..d012d6fe2 100644
--- a/src/ImageSharp/Processing/ColorMatrix/ColorBlindness.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/ColorBlindness.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Grayscale.cs b/src/ImageSharp/Processing/ColorMatrix/Grayscale.cs
index 10888da44..8700b63e8 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Grayscale.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Grayscale.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Hue.cs b/src/ImageSharp/Processing/ColorMatrix/Hue.cs
index 5e6a20523..8dbc55530 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Hue.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Hue.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Kodachrome.cs b/src/ImageSharp/Processing/ColorMatrix/Kodachrome.cs
index 2fca3f1c2..13a71a71e 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Kodachrome.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Kodachrome.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Lomograph.cs b/src/ImageSharp/Processing/ColorMatrix/Lomograph.cs
index 1e486ce30..3299add7f 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Lomograph.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Lomograph.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Polaroid.cs b/src/ImageSharp/Processing/ColorMatrix/Polaroid.cs
index 798a2ab3f..194800ec7 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Polaroid.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Polaroid.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Saturation.cs b/src/ImageSharp/Processing/ColorMatrix/Saturation.cs
index faca73fc6..c41f304b4 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Saturation.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Saturation.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/ColorMatrix/Sepia.cs b/src/ImageSharp/Processing/ColorMatrix/Sepia.cs
index 96c82c259..d60ec7165 100644
--- a/src/ImageSharp/Processing/ColorMatrix/Sepia.cs
+++ b/src/ImageSharp/Processing/ColorMatrix/Sepia.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Convolution/BoxBlur.cs b/src/ImageSharp/Processing/Convolution/BoxBlur.cs
index 6912d4885..46c134ee2 100644
--- a/src/ImageSharp/Processing/Convolution/BoxBlur.cs
+++ b/src/ImageSharp/Processing/Convolution/BoxBlur.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Convolution/DetectEdges.cs b/src/ImageSharp/Processing/Convolution/DetectEdges.cs
index 6ffeaa63d..3aa1d0b51 100644
--- a/src/ImageSharp/Processing/Convolution/DetectEdges.cs
+++ b/src/ImageSharp/Processing/Convolution/DetectEdges.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Convolution/GaussianBlur.cs b/src/ImageSharp/Processing/Convolution/GaussianBlur.cs
index 3472ceadb..72abec6df 100644
--- a/src/ImageSharp/Processing/Convolution/GaussianBlur.cs
+++ b/src/ImageSharp/Processing/Convolution/GaussianBlur.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Convolution/GaussianSharpen.cs b/src/ImageSharp/Processing/Convolution/GaussianSharpen.cs
index 196bda837..2ed99ea26 100644
--- a/src/ImageSharp/Processing/Convolution/GaussianSharpen.cs
+++ b/src/ImageSharp/Processing/Convolution/GaussianSharpen.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Effects/Alpha.cs b/src/ImageSharp/Processing/Effects/Alpha.cs
index f38953e38..a54bde675 100644
--- a/src/ImageSharp/Processing/Effects/Alpha.cs
+++ b/src/ImageSharp/Processing/Effects/Alpha.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/BackgroundColor.cs b/src/ImageSharp/Processing/Effects/BackgroundColor.cs
index e1107258f..cb189338e 100644
--- a/src/ImageSharp/Processing/Effects/BackgroundColor.cs
+++ b/src/ImageSharp/Processing/Effects/BackgroundColor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/Brightness.cs b/src/ImageSharp/Processing/Effects/Brightness.cs
index 585db7346..6b7477488 100644
--- a/src/ImageSharp/Processing/Effects/Brightness.cs
+++ b/src/ImageSharp/Processing/Effects/Brightness.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/Contrast.cs b/src/ImageSharp/Processing/Effects/Contrast.cs
index 99a90455f..8f226d08e 100644
--- a/src/ImageSharp/Processing/Effects/Contrast.cs
+++ b/src/ImageSharp/Processing/Effects/Contrast.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/Invert.cs b/src/ImageSharp/Processing/Effects/Invert.cs
index 3bb1124ce..113d8289e 100644
--- a/src/ImageSharp/Processing/Effects/Invert.cs
+++ b/src/ImageSharp/Processing/Effects/Invert.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/OilPainting.cs b/src/ImageSharp/Processing/Effects/OilPainting.cs
index 62e6aeda7..d4528b55b 100644
--- a/src/ImageSharp/Processing/Effects/OilPainting.cs
+++ b/src/ImageSharp/Processing/Effects/OilPainting.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Effects/Pixelate.cs b/src/ImageSharp/Processing/Effects/Pixelate.cs
index a57f30c96..eeffff092 100644
--- a/src/ImageSharp/Processing/Effects/Pixelate.cs
+++ b/src/ImageSharp/Processing/Effects/Pixelate.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Overlays/Glow.cs b/src/ImageSharp/Processing/Overlays/Glow.cs
index 562012f97..1be15ad65 100644
--- a/src/ImageSharp/Processing/Overlays/Glow.cs
+++ b/src/ImageSharp/Processing/Overlays/Glow.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Overlays/Vignette.cs b/src/ImageSharp/Processing/Overlays/Vignette.cs
index 424200fdd..f805dd07a 100644
--- a/src/ImageSharp/Processing/Overlays/Vignette.cs
+++ b/src/ImageSharp/Processing/Overlays/Vignette.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs b/src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs
index f187cfcff..566449b27 100644
--- a/src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to perform binary threshold filtering against an
/// . The image will be converted to grayscale before thresholding occurs.
diff --git a/src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs b/src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs
index 0fd73a84a..af2d9f760 100644
--- a/src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Processing.Processors
using System;
using ImageSharp.Dithering;
+ using ImageSharp.PixelFormats;
///
/// An that dithers an image using error diffusion.
diff --git a/src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs b/src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs
index 08f653271..c4d71d9af 100644
--- a/src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs
@@ -9,6 +9,7 @@ namespace ImageSharp.Processing.Processors
using System.Buffers;
using ImageSharp.Dithering;
+ using ImageSharp.PixelFormats;
///
/// An that dithers an image using error diffusion.
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/BlackWhiteProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/BlackWhiteProcessor.cs
index 6676d89ba..d37d119a4 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/BlackWhiteProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/BlackWhiteProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image to their black and white equivalent.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs
index 3bad624ba..a91bd1946 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Achromatomaly (Color desensitivity) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs
index 246a57481..d543c4edc 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Achromatopsia (Monochrome) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs
index a79716859..ea73d0c66 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Deuteranomaly (Green-Weak) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs
index c8cc1a962..4b5129a8b 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Deuteranopia (Green-Blind) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs
index 618c6deae..14eea0812 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Protanopia (Red-Weak) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs
index de87ede0c..39cb715bd 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Protanopia (Red-Blind) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs
index dd2a6067c..2b402197b 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Tritanomaly (Blue-Weak) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs
index 5d8098c62..5d228afa7 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating Tritanopia (Blue-Blind) color blindness.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs
index 7f5d4465a..b38093d63 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// The color matrix filter. Inherit from this class to perform operation involving color matrices.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt601Processor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt601Processor.cs
index add3e266b..65de8a66d 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt601Processor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt601Processor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image to Grayscale applying the formula as specified by ITU-R Recommendation BT.601
/// .
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt709Processor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt709Processor.cs
index 8e7956e5d..5f71e357b 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt709Processor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/GrayscaleBt709Processor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image to Grayscale applying the formula as specified by ITU-R Recommendation BT.709
/// .
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/HueProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/HueProcessor.cs
index e5fd0318c..8995663a3 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/HueProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/HueProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// An to change the hue of an .
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/IColorMatrixFilter.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/IColorMatrixFilter.cs
index ca57f6633..0c29c65a1 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/IColorMatrixFilter.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/IColorMatrixFilter.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Encapsulates properties and methods for creating processors that utilize a matrix to
/// alter the image pixels.
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/KodachromeProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/KodachromeProcessor.cs
index fe6b07c03..18514236f 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/KodachromeProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/KodachromeProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating an old Kodachrome camera effect.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/LomographProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/LomographProcessor.cs
index 2071fc7bb..70b997997 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/LomographProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/LomographProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating an old Lomograph effect.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/PolaroidProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/PolaroidProcessor.cs
index d625b641d..ccc3c0060 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/PolaroidProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/PolaroidProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image recreating an old Polaroid effect.
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/SaturationProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/SaturationProcessor.cs
index cd8947d05..3adfb8311 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/SaturationProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/SaturationProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// An to change the saturation of an .
///
diff --git a/src/ImageSharp/Processing/Processors/ColorMatrix/SepiaProcessor.cs b/src/ImageSharp/Processing/Processors/ColorMatrix/SepiaProcessor.cs
index 8d9ef17d0..89be3acad 100644
--- a/src/ImageSharp/Processing/Processors/ColorMatrix/SepiaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/ColorMatrix/SepiaProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Converts the colors of the image to their sepia equivalent.
/// The formula used matches the svg specification.
diff --git a/src/ImageSharp/Processing/Processors/Convolution/BoxBlurProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/BoxBlurProcessor.cs
index 26a531d0c..652442388 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/BoxBlurProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/BoxBlurProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Applies a Box blur sampler to the image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs
index 8ca06b359..ac96c40ae 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that uses two one-dimensional matrices to perform convolution against an image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor.cs
index ca114b10a..9b95cb1a3 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that uses two one-dimensional matrices to perform two-pass convolution against an image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs
index d3b11d781..a0c140028 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that uses a 2 dimensional matrix to perform convolution against an image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetector2DProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetector2DProcessor.cs
index 855820f18..457854a31 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetector2DProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetector2DProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that detects edges within an image using two one-dimensional matrices.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorCompassProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorCompassProcessor.cs
index 43a0942b8..a4d1d5409 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorCompassProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorCompassProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that detects edges within an image using a eight two dimensional matrices.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorProcessor.cs
index 8fbf2fe0b..e7670dd1d 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/EdgeDetectorProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Defines a sampler that detects edges within an image using a single two dimensional matrix.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/IEdgeDetectorProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/IEdgeDetectorProcessor.cs
index 39d11a485..c7c126794 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/IEdgeDetectorProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/IEdgeDetectorProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Provides properties and methods allowing the detection of edges within an image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs
index 56d5ac01d..d72816a76 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Kayyali operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KirschProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KirschProcessor.cs
index f1f504f26..d882bdb16 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KirschProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/KirschProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Kirsch operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs
index 61a8858b7..39f64fb5a 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Laplacian 3 x 3 operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs
index 2c3929712..c65cb5bd7 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Laplacian 5 x 5 operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs
index aa9b4b9f2..57ab4dce6 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Laplacian of Gaussian operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/PrewittProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/PrewittProcessor.cs
index 24faf20d0..d1515dee8 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/PrewittProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/PrewittProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Prewitt operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs
index efbdc7ffa..bab9ff622 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Roberts Cross operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobinsonProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobinsonProcessor.cs
index f6ab60fd3..4afca0f01 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobinsonProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/RobinsonProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Kirsch operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/ScharrProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/ScharrProcessor.cs
index 41e3d16f4..a583d3c0d 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/ScharrProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/ScharrProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Scharr operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/SobelProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/SobelProcessor.cs
index 245df5afd..1c2a6a18f 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/SobelProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/EdgeDetection/SobelProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Diagnostics.CodeAnalysis;
+ using ImageSharp.PixelFormats;
+
///
/// The Sobel operator filter.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/GaussianBlurProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/GaussianBlurProcessor.cs
index c0f025630..87de922a1 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/GaussianBlurProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/GaussianBlurProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Applies a Gaussian blur sampler to the image.
///
diff --git a/src/ImageSharp/Processing/Processors/Convolution/GaussianSharpenProcessor.cs b/src/ImageSharp/Processing/Processors/Convolution/GaussianSharpenProcessor.cs
index 353763843..34d099033 100644
--- a/src/ImageSharp/Processing/Processors/Convolution/GaussianSharpenProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Convolution/GaussianSharpenProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Applies a Gaussian sharpening sampler to the image.
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs
index 48b8a64b2..a60106546 100644
--- a/src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to change the alpha component of an .
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs
index 368986b5d..21973de3e 100644
--- a/src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Sets the background color of the image.
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs
index 5647a6453..f9f1585ea 100644
--- a/src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to change the brightness of an .
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs
index c6abd250b..8308c57e2 100644
--- a/src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to change the contrast of an .
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs
index 9eaa99c71..a0348970e 100644
--- a/src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to invert the colors of an .
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs
index 3ef56b745..73d956907 100644
--- a/src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to apply an oil painting effect to an .
///
diff --git a/src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs b/src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs
index 006ae8e60..7a57daa4e 100644
--- a/src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Collections.Generic;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An to pixelate the colors of an .
///
diff --git a/src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs b/src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs
index 223da64ac..049378256 100644
--- a/src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An that applies a radial glow effect an .
///
diff --git a/src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs b/src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs
index 9be0cfde2..31e813564 100644
--- a/src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// An that applies a radial vignette effect to an .
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs
index 1b96e098e..b67ef5bf1 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods to allow the cropping of an image.
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/EntropyCropProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/EntropyCropProcessor.cs
index 67259477c..571c40939 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/EntropyCropProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/EntropyCropProcessor.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Processing.Processors
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods to allow the cropping of an image to preserve areas of highest
/// entropy.
diff --git a/src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs
index 86dc8bb15..2faf77905 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods that allow the flipping of an image around its center point.
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/Matrix3x2Processor.cs b/src/ImageSharp/Processing/Processors/Transforms/Matrix3x2Processor.cs
index a8cd71003..3135551f8 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/Matrix3x2Processor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/Matrix3x2Processor.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing.Processors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods to transform an image using a .
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
index bd7ca3f60..e2f77d812 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/ResamplingWeightedProcessor.cs
@@ -10,6 +10,8 @@ namespace ImageSharp.Processing.Processors
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods that allow the resizing of images using various algorithms.
/// Adapted from
diff --git a/src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs
index 9601cc7bb..23166fd3a 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods that allow the resizing of images using various algorithms.
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs
index 7d0afce26..fc5d29b06 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods that allow the rotating of images.
///
diff --git a/src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs b/src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs
index e5b6f12bf..40ea6a94e 100644
--- a/src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs
+++ b/src/ImageSharp/Processing/Processors/Transforms/SkewProcessor.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Processing.Processors
using System.Numerics;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods that allow the skewing of images.
///
diff --git a/src/ImageSharp/Processing/Transforms/AutoOrient.cs b/src/ImageSharp/Processing/Transforms/AutoOrient.cs
index 5634c3299..de736092d 100644
--- a/src/ImageSharp/Processing/Transforms/AutoOrient.cs
+++ b/src/ImageSharp/Processing/Transforms/AutoOrient.cs
@@ -6,6 +6,9 @@
namespace ImageSharp
{
using System;
+
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Transforms/Crop.cs b/src/ImageSharp/Processing/Transforms/Crop.cs
index 59c1209f9..073e8136d 100644
--- a/src/ImageSharp/Processing/Transforms/Crop.cs
+++ b/src/ImageSharp/Processing/Transforms/Crop.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Transforms/EntropyCrop.cs b/src/ImageSharp/Processing/Transforms/EntropyCrop.cs
index 59d0211a1..aaafd396f 100644
--- a/src/ImageSharp/Processing/Transforms/EntropyCrop.cs
+++ b/src/ImageSharp/Processing/Transforms/EntropyCrop.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Processing/Transforms/Flip.cs b/src/ImageSharp/Processing/Transforms/Flip.cs
index 1cc79f888..41f2e5616 100644
--- a/src/ImageSharp/Processing/Transforms/Flip.cs
+++ b/src/ImageSharp/Processing/Transforms/Flip.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Transforms/Options/ResizeHelper.cs b/src/ImageSharp/Processing/Transforms/Options/ResizeHelper.cs
index 1e7d7e24f..c87688266 100644
--- a/src/ImageSharp/Processing/Transforms/Options/ResizeHelper.cs
+++ b/src/ImageSharp/Processing/Transforms/Options/ResizeHelper.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Processing
using System;
using System.Linq;
+ using ImageSharp.PixelFormats;
+
///
/// Provides methods to help calculate the target rectangle when resizing using the
/// enumeration.
diff --git a/src/ImageSharp/Processing/Transforms/Pad.cs b/src/ImageSharp/Processing/Transforms/Pad.cs
index 3aebe2304..42851e205 100644
--- a/src/ImageSharp/Processing/Transforms/Pad.cs
+++ b/src/ImageSharp/Processing/Transforms/Pad.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Transforms/Resize.cs b/src/ImageSharp/Processing/Transforms/Resize.cs
index 82c4b16c3..543b98297 100644
--- a/src/ImageSharp/Processing/Transforms/Resize.cs
+++ b/src/ImageSharp/Processing/Transforms/Resize.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Transforms/Rotate.cs b/src/ImageSharp/Processing/Transforms/Rotate.cs
index 09fcb3534..b335a3c76 100644
--- a/src/ImageSharp/Processing/Transforms/Rotate.cs
+++ b/src/ImageSharp/Processing/Transforms/Rotate.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing;
using Processing.Processors;
diff --git a/src/ImageSharp/Processing/Transforms/RotateFlip.cs b/src/ImageSharp/Processing/Transforms/RotateFlip.cs
index 2f59438e9..396590359 100644
--- a/src/ImageSharp/Processing/Transforms/RotateFlip.cs
+++ b/src/ImageSharp/Processing/Transforms/RotateFlip.cs
@@ -6,6 +6,9 @@
namespace ImageSharp
{
using System;
+
+ using ImageSharp.PixelFormats;
+
using Processing;
///
diff --git a/src/ImageSharp/Processing/Transforms/Skew.cs b/src/ImageSharp/Processing/Transforms/Skew.cs
index b74660efc..0c9cfbc8e 100644
--- a/src/ImageSharp/Processing/Transforms/Skew.cs
+++ b/src/ImageSharp/Processing/Transforms/Skew.cs
@@ -7,6 +7,8 @@ namespace ImageSharp
{
using System;
+ using ImageSharp.PixelFormats;
+
using Processing.Processors;
///
diff --git a/src/ImageSharp/Quantizers/IQuantizer{TPixel}.cs b/src/ImageSharp/Quantizers/IQuantizer{TPixel}.cs
index 566ddf6b5..f3bf9b56d 100644
--- a/src/ImageSharp/Quantizers/IQuantizer{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/IQuantizer{TPixel}.cs
@@ -6,6 +6,7 @@
namespace ImageSharp.Quantizers
{
using ImageSharp.Dithering;
+ using ImageSharp.PixelFormats;
///
/// Provides methods for allowing quantization of images pixels.
diff --git a/src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs b/src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs
index 2296e589c..d57d297fc 100644
--- a/src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Quantizers
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// Encapsulates methods to calculate the color palette if an image using an Octree pattern.
diff --git a/src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs b/src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs
index 1c588b842..b5e5ccb25 100644
--- a/src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Quantizers
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// Encapsulates methods to create a quantized image based upon the given palette.
diff --git a/src/ImageSharp/Quantizers/Quantize.cs b/src/ImageSharp/Quantizers/Quantize.cs
index 44be039f4..a23509278 100644
--- a/src/ImageSharp/Quantizers/Quantize.cs
+++ b/src/ImageSharp/Quantizers/Quantize.cs
@@ -8,6 +8,7 @@ namespace ImageSharp
using System;
using System.Threading.Tasks;
+ using ImageSharp.PixelFormats;
using ImageSharp.Quantizers;
///
diff --git a/src/ImageSharp/Quantizers/QuantizedImage{TPixel}.cs b/src/ImageSharp/Quantizers/QuantizedImage{TPixel}.cs
index 927128065..c8b2c7df6 100644
--- a/src/ImageSharp/Quantizers/QuantizedImage{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/QuantizedImage{TPixel}.cs
@@ -6,6 +6,7 @@
namespace ImageSharp.Quantizers
{
using System;
+ using ImageSharp.PixelFormats;
///
/// Represents a quantized image where the pixels indexed by a color palette.
diff --git a/src/ImageSharp/Quantizers/Quantizer{TPixel}.cs b/src/ImageSharp/Quantizers/Quantizer{TPixel}.cs
index 1cf620bf9..02447062e 100644
--- a/src/ImageSharp/Quantizers/Quantizer{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/Quantizer{TPixel}.cs
@@ -5,11 +5,11 @@
namespace ImageSharp.Quantizers
{
- using System;
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.CompilerServices;
using ImageSharp.Dithering;
+ using ImageSharp.PixelFormats;
///
/// Encapsulates methods to calculate the color palette of an image.
diff --git a/src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs b/src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs
index 16ab64f3c..482481c71 100644
--- a/src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs
+++ b/src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs
@@ -10,6 +10,7 @@ namespace ImageSharp.Quantizers
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
///
/// An implementation of Wu's color quantizer with alpha channel.
diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromVector4ReferenceVsPointer.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromVector4ReferenceVsPointer.cs
index 2f3f61cce..65c4a235d 100644
--- a/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromVector4ReferenceVsPointer.cs
+++ b/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromVector4ReferenceVsPointer.cs
@@ -6,6 +6,7 @@
using BenchmarkDotNet.Attributes;
using ImageSharp;
+ using ImageSharp.PixelFormats;
///
/// Compares two implementation candidates for general BulkPixelOperations.ToVector4():
@@ -14,7 +15,7 @@
///
public unsafe class PackFromVector4ReferenceVsPointer
{
- private Buffer destination;
+ private Buffer destination;
private Buffer source;
@@ -24,7 +25,7 @@
[Setup]
public void Setup()
{
- this.destination = new Buffer(this.Count);
+ this.destination = new Buffer(this.Count);
this.source = new Buffer(this.Count * 4);
this.source.Pin();
this.destination.Pin();
@@ -43,12 +44,12 @@
Vector4* sp = (Vector4*)this.source.Pin();
byte* dp = (byte*)this.destination.Pin();
int count = this.Count;
- int size = sizeof(ImageSharp.Rgba32);
+ int size = sizeof(Rgba32);
for (int i = 0; i < count; i++)
{
Vector4 v = Unsafe.Read(sp);
- ImageSharp.Rgba32 c = default(ImageSharp.Rgba32);
+ Rgba32 c = default(Rgba32);
c.PackFromVector4(v);
Unsafe.Write(dp, c);
@@ -61,7 +62,7 @@
public void PackUsingReferences()
{
ref Vector4 sp = ref this.source.Array[0];
- ref ImageSharp.Rgba32 dp = ref this.destination.Array[0];
+ ref Rgba32 dp = ref this.destination.Array[0];
int count = this.Count;
for (int i = 0; i < count; i++)
diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromXyzw.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromXyzw.cs
index 00b0b503c..2a370bc00 100644
--- a/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromXyzw.cs
+++ b/tests/ImageSharp.Benchmarks/Color/Bulk/PackFromXyzw.cs
@@ -3,7 +3,7 @@ namespace ImageSharp.Benchmarks.Color.Bulk
{
using BenchmarkDotNet.Attributes;
- using Rgba32 = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
public abstract class PackFromXyzw
where TPixel : struct, IPixel
diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/ToVector4.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/ToVector4.cs
index b3a23147e..1234a9946 100644
--- a/tests/ImageSharp.Benchmarks/Color/Bulk/ToVector4.cs
+++ b/tests/ImageSharp.Benchmarks/Color/Bulk/ToVector4.cs
@@ -5,6 +5,8 @@ namespace ImageSharp.Benchmarks.Color.Bulk
using BenchmarkDotNet.Attributes;
+ using ImageSharp.PixelFormats;
+
public abstract class ToVector4
where TPixel : struct, IPixel
{
@@ -55,7 +57,7 @@ namespace ImageSharp.Benchmarks.Color.Bulk
}
}
- public class ToVector4_Color : ToVector4
+ public class ToVector4_Color : ToVector4
{
}
}
\ No newline at end of file
diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyz.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyz.cs
index ad7e2a9cf..fe201549b 100644
--- a/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyz.cs
+++ b/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyz.cs
@@ -3,7 +3,7 @@ namespace ImageSharp.Benchmarks.Color.Bulk
{
using BenchmarkDotNet.Attributes;
- using Rgba32 = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
public abstract class ToXyz
where TPixel : struct, IPixel
diff --git a/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyzw.cs b/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyzw.cs
index 75e0f247c..f7406d0f6 100644
--- a/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyzw.cs
+++ b/tests/ImageSharp.Benchmarks/Color/Bulk/ToXyzw.cs
@@ -7,8 +7,7 @@ using System.Threading.Tasks;
namespace ImageSharp.Benchmarks.Color.Bulk
{
using BenchmarkDotNet.Attributes;
-
- using Rgba32 = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
public abstract class ToXyzw
where TPixel : struct, IPixel
diff --git a/tests/ImageSharp.Benchmarks/Color/ColorEquality.cs b/tests/ImageSharp.Benchmarks/Color/ColorEquality.cs
index efc7c130f..a641baafe 100644
--- a/tests/ImageSharp.Benchmarks/Color/ColorEquality.cs
+++ b/tests/ImageSharp.Benchmarks/Color/ColorEquality.cs
@@ -7,7 +7,8 @@ namespace ImageSharp.Benchmarks
{
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using SystemColor = System.Drawing.Color;
public class ColorEquality
@@ -21,7 +22,7 @@ namespace ImageSharp.Benchmarks
[Benchmark(Description = "ImageSharp Color Equals")]
public bool ColorEqual()
{
- return new CoreColor(128, 128, 128, 128).Equals(new CoreColor(128, 128, 128, 128));
+ return new Rgba32(128, 128, 128, 128).Equals(new Rgba32(128, 128, 128, 128));
}
}
}
diff --git a/tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs b/tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs
index 10c5584aa..d0bd9f208 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/DrawBeziers.cs
@@ -12,7 +12,8 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using CoreImage = ImageSharp.Image;
using CorePoint = ImageSharp.Point;
@@ -50,7 +51,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.DrawBeziers(
- CoreColor.HotPink,
+ Rgba32.HotPink,
10,
new[] {
new Vector2(10, 500),
diff --git a/tests/ImageSharp.Benchmarks/Drawing/DrawLines.cs b/tests/ImageSharp.Benchmarks/Drawing/DrawLines.cs
index 3561661b6..2bd3f4a6a 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/DrawLines.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/DrawLines.cs
@@ -12,7 +12,8 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using CoreImage = ImageSharp.Image;
using CorePoint = ImageSharp.Point;
@@ -49,7 +50,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.DrawLines(
- CoreColor.HotPink,
+ Rgba32.HotPink,
10,
new[] {
new Vector2(10, 10),
diff --git a/tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs b/tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs
index 8f7255e80..a0f8b21d8 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/DrawPolygon.cs
@@ -11,10 +11,11 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
using CoreImage = ImageSharp.Image;
using CorePoint = ImageSharp.Point;
- using CoreColor = ImageSharp.Rgba32;
using System.IO;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
public class DrawPolygon : BenchmarkBase
{
[Benchmark(Baseline = true, Description = "System.Drawing Draw Polygon")]
@@ -48,7 +49,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.DrawPolygon(
- CoreColor.HotPink,
+ Rgba32.HotPink,
10,
new[] {
new Vector2(10, 10),
diff --git a/tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs b/tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs
index dfcc6db0a..ac1082697 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/FillPolygon.cs
@@ -13,7 +13,8 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using CoreImage = ImageSharp.Image;
public class FillPolygon : BenchmarkBase
@@ -57,7 +58,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.FillPolygon(
- CoreColor.HotPink,
+ Rgba32.HotPink,
new[] {
new Vector2(10, 10),
new Vector2(550, 50),
@@ -77,7 +78,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.Fill(
- CoreColor.HotPink,
+ Rgba32.HotPink,
this.shape);
using (MemoryStream ms = new MemoryStream())
diff --git a/tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs b/tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs
index 161923178..7b21dbdc6 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/FillRectangle.cs
@@ -11,11 +11,12 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
using CoreImage = ImageSharp.Image;
using CoreRectangle = ImageSharp.Rectangle;
- using CoreColor = ImageSharp.Rgba32;
using CoreSize = ImageSharp.Size;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
public class FillRectangle : BenchmarkBase
{
[Benchmark(Baseline = true, Description = "System.Drawing Fill Rectangle")]
@@ -39,7 +40,7 @@ namespace ImageSharp.Benchmarks
{
using (CoreImage image = new CoreImage(800, 800))
{
- image.Fill(CoreColor.HotPink, new CoreRectangle(10, 10, 190, 140));
+ image.Fill(Rgba32.HotPink, new CoreRectangle(10, 10, 190, 140));
return new CoreSize(image.Width, image.Height);
}
@@ -51,7 +52,7 @@ namespace ImageSharp.Benchmarks
using (CoreImage image = new CoreImage(800, 800))
{
image.FillPolygon(
- CoreColor.HotPink,
+ Rgba32.HotPink,
new[] {
new Vector2(10, 10),
new Vector2(200, 10),
diff --git a/tests/ImageSharp.Benchmarks/Drawing/FillWithPattern.cs b/tests/ImageSharp.Benchmarks/Drawing/FillWithPattern.cs
index bc2330848..580120abd 100644
--- a/tests/ImageSharp.Benchmarks/Drawing/FillWithPattern.cs
+++ b/tests/ImageSharp.Benchmarks/Drawing/FillWithPattern.cs
@@ -11,8 +11,10 @@ namespace ImageSharp.Benchmarks
using BenchmarkDotNet.Attributes;
+ using ImageSharp.PixelFormats;
+
using CoreBrushes = ImageSharp.Drawing.Brushes.Brushes;
- using CoreColor = ImageSharp.Rgba32;
+
using CoreImage = ImageSharp.Image;
public class FillWithPattern
@@ -40,7 +42,7 @@ namespace ImageSharp.Benchmarks
{
using (CoreImage image = new CoreImage(800, 800))
{
- image.Fill(CoreBrushes.BackwardDiagonal(CoreColor.HotPink));
+ image.Fill(CoreBrushes.BackwardDiagonal(Rgba32.HotPink));
using (MemoryStream ms = new MemoryStream())
{
diff --git a/tests/ImageSharp.Benchmarks/General/ClearBuffer.cs b/tests/ImageSharp.Benchmarks/General/ClearBuffer.cs
index 99640fe58..97deb72c5 100644
--- a/tests/ImageSharp.Benchmarks/General/ClearBuffer.cs
+++ b/tests/ImageSharp.Benchmarks/General/ClearBuffer.cs
@@ -7,7 +7,7 @@ namespace ImageSharp.Benchmarks.General
using BenchmarkDotNet.Attributes;
- using Rgba32 = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
public unsafe class ClearBuffer
{
@@ -19,7 +19,7 @@ namespace ImageSharp.Benchmarks.General
[Setup]
public void Setup()
{
- this.buffer = new Buffer(this.Count);
+ this.buffer = new Buffer(this.Count);
}
[Cleanup]
diff --git a/tests/ImageSharp.Benchmarks/Image/CopyPixels.cs b/tests/ImageSharp.Benchmarks/Image/CopyPixels.cs
index 1e7745de1..aade8a8de 100644
--- a/tests/ImageSharp.Benchmarks/Image/CopyPixels.cs
+++ b/tests/ImageSharp.Benchmarks/Image/CopyPixels.cs
@@ -9,19 +9,20 @@ namespace ImageSharp.Benchmarks.Image
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using CoreImage = ImageSharp.Image;
public class CopyPixels : BenchmarkBase
{
[Benchmark(Description = "Copy by Pixel")]
- public CoreColor CopyByPixel()
+ public Rgba32 CopyByPixel()
{
using (CoreImage source = new CoreImage(1024, 768))
using (CoreImage target = new CoreImage(1024, 768))
{
- using (PixelAccessor sourcePixels = source.Lock())
- using (PixelAccessor targetPixels = target.Lock())
+ using (PixelAccessor sourcePixels = source.Lock())
+ using (PixelAccessor targetPixels = target.Lock())
{
Parallel.For(
0,
diff --git a/tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs b/tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs
index 1d18498c8..b27ad5fcc 100644
--- a/tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs
+++ b/tests/ImageSharp.Benchmarks/Image/EncodeIndexedPng.cs
@@ -11,6 +11,7 @@ namespace ImageSharp.Benchmarks.Image
using ImageSharp;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
using ImageSharp.Quantizers;
///
diff --git a/tests/ImageSharp.Benchmarks/Image/EncodePng.cs b/tests/ImageSharp.Benchmarks/Image/EncodePng.cs
index 2bf2c0fef..6158e5aac 100644
--- a/tests/ImageSharp.Benchmarks/Image/EncodePng.cs
+++ b/tests/ImageSharp.Benchmarks/Image/EncodePng.cs
@@ -12,6 +12,7 @@ namespace ImageSharp.Benchmarks.Image
using BenchmarkDotNet.Attributes;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
using ImageSharp.Quantizers;
using CoreImage = ImageSharp.Image;
@@ -66,10 +67,10 @@ namespace ImageSharp.Benchmarks.Image
{
using (MemoryStream memoryStream = new MemoryStream())
{
- Quantizer quantizer = this.UseOctreeQuantizer
- ? (Quantizer)
- new OctreeQuantizer()
- : new PaletteQuantizer();
+ Quantizer quantizer = this.UseOctreeQuantizer
+ ? (Quantizer)
+ new OctreeQuantizer()
+ : new PaletteQuantizer();
PngEncoderOptions options = new PngEncoderOptions() { Quantizer = quantizer };
this.bmpCore.SaveAsPng(memoryStream, options);
diff --git a/tests/ImageSharp.Benchmarks/Image/GetSetPixel.cs b/tests/ImageSharp.Benchmarks/Image/GetSetPixel.cs
index 31cd7c232..21927c915 100644
--- a/tests/ImageSharp.Benchmarks/Image/GetSetPixel.cs
+++ b/tests/ImageSharp.Benchmarks/Image/GetSetPixel.cs
@@ -9,7 +9,8 @@ namespace ImageSharp.Benchmarks.Image
using BenchmarkDotNet.Attributes;
- using CoreColor = ImageSharp.Rgba32;
+ using ImageSharp.PixelFormats;
+
using CoreImage = ImageSharp.Image;
using SystemColor = System.Drawing.Color;
@@ -26,13 +27,13 @@ namespace ImageSharp.Benchmarks.Image
}
[Benchmark(Description = "ImageSharp GetSet pixel")]
- public CoreColor ResizeCore()
+ public Rgba32 ResizeCore()
{
using (CoreImage image = new CoreImage(400, 400))
{
- using (PixelAccessor imagePixels = image.Lock())
+ using (PixelAccessor imagePixels = image.Lock())
{
- imagePixels[200, 200] = CoreColor.White;
+ imagePixels[200, 200] = Rgba32.White;
return imagePixels[200, 200];
}
}
diff --git a/tests/ImageSharp.Benchmarks/Samplers/Resize.cs b/tests/ImageSharp.Benchmarks/Samplers/Resize.cs
index a51dcc45a..638a56bf3 100644
--- a/tests/ImageSharp.Benchmarks/Samplers/Resize.cs
+++ b/tests/ImageSharp.Benchmarks/Samplers/Resize.cs
@@ -9,9 +9,11 @@ namespace ImageSharp.Benchmarks
using System.Drawing.Drawing2D;
using BenchmarkDotNet.Attributes;
+
+ using ImageSharp.PixelFormats;
+
using CoreSize = ImageSharp.Size;
using CoreImage = ImageSharp.Image;
- using CoreVectorImage = ImageSharp.Image;
public class Resize : BenchmarkBase
{
@@ -48,7 +50,7 @@ namespace ImageSharp.Benchmarks
[Benchmark(Description = "ImageSharp Vector Resize")]
public CoreSize ResizeCoreVector()
{
- using (CoreVectorImage image = new CoreVectorImage(2000, 2000))
+ using (CoreImage image = new CoreImage(2000, 2000))
{
image.Resize(400, 400);
return new CoreSize(image.Width, image.Height);
@@ -68,7 +70,7 @@ namespace ImageSharp.Benchmarks
[Benchmark(Description = "ImageSharp Vector Compand Resize")]
public CoreSize ResizeCoreVectorCompand()
{
- using (CoreVectorImage image = new CoreVectorImage(2000, 2000))
+ using (CoreImage image = new CoreImage(2000, 2000))
{
image.Resize(400, 400, true);
return new CoreSize(image.Width, image.Height);
diff --git a/tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs b/tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs
index 19aefd06b..b498c93ac 100644
--- a/tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs
+++ b/tests/ImageSharp.Tests/Colors/BulkPixelOperationsTests.cs
@@ -5,12 +5,14 @@ namespace ImageSharp.Tests.Colors
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
using Xunit.Abstractions;
public class BulkPixelOperationsTests
{
- public class Color32 : BulkPixelOperationsTests
+ public class Color32 : BulkPixelOperationsTests
{
public Color32(ITestOutputHelper output)
: base(output)
@@ -23,19 +25,19 @@ namespace ImageSharp.Tests.Colors
[Fact]
public void IsSpecialImplementation()
{
- Assert.IsType(BulkPixelOperations.Instance);
+ Assert.IsType(BulkPixelOperations.Instance);
}
[Fact]
public void ToVector4SimdAligned()
{
- ImageSharp.Rgba32[] source = CreatePixelTestData(64);
+ Rgba32[] source = CreatePixelTestData(64);
Vector4[] expected = CreateExpectedVector4Data(source);
TestOperation(
source,
expected,
- (s, d) => ImageSharp.Rgba32.BulkOperations.ToVector4SimdAligned(s, d, 64)
+ (s, d) => Rgba32.BulkOperations.ToVector4SimdAligned(s, d, 64)
);
}
@@ -45,20 +47,20 @@ namespace ImageSharp.Tests.Colors
int times = 200000;
int count = 1024;
- using (Buffer source = new Buffer(count))
+ using (Buffer source = new Buffer(count))
using (Buffer dest = new Buffer(count))
{
this.Measure(
times,
() =>
{
- BulkPixelOperations.Instance.ToVector4(source, dest, count);
+ BulkPixelOperations.Instance.ToVector4(source, dest, count);
});
}
}
}
- public class Argb : BulkPixelOperationsTests
+ public class Argb : BulkPixelOperationsTests
{
// For 4.6 test runner MemberData does not work without redeclaring the public field in the derived test class:
public Argb(ITestOutputHelper output)
diff --git a/tests/ImageSharp.Tests/Colors/ColorConstructorTests.cs b/tests/ImageSharp.Tests/Colors/ColorConstructorTests.cs
index d2c5cf845..eac0644d9 100644
--- a/tests/ImageSharp.Tests/Colors/ColorConstructorTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorConstructorTests.cs
@@ -7,6 +7,9 @@ namespace ImageSharp.Tests.Colors
{
using System.Collections.Generic;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class ColorConstructorTests
diff --git a/tests/ImageSharp.Tests/Colors/ColorConversionTests.cs b/tests/ImageSharp.Tests/Colors/ColorConversionTests.cs
index 09a150ab2..4b45d0ab4 100644
--- a/tests/ImageSharp.Tests/Colors/ColorConversionTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorConversionTests.cs
@@ -8,6 +8,7 @@ namespace ImageSharp.Tests
using System;
using System.Diagnostics.CodeAnalysis;
using ImageSharp.Colors.Spaces;
+ using ImageSharp.PixelFormats;
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/ColorDefinitionTests.cs b/tests/ImageSharp.Tests/Colors/ColorDefinitionTests.cs
index 1f80aa7d5..f2113852f 100644
--- a/tests/ImageSharp.Tests/Colors/ColorDefinitionTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorDefinitionTests.cs
@@ -12,6 +12,8 @@ namespace ImageSharp.Tests
using System.Reflection;
using ImageSharp.Colors.Spaces;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class ColorDefinitionTests
{
diff --git a/tests/ImageSharp.Tests/Colors/ColorEqualityTests.cs b/tests/ImageSharp.Tests/Colors/ColorEqualityTests.cs
index 18d6d6e71..efec4ea38 100644
--- a/tests/ImageSharp.Tests/Colors/ColorEqualityTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorEqualityTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests.Colors
using System;
using System.Numerics;
using ImageSharp.Colors.Spaces;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/ColorPackingTests.cs b/tests/ImageSharp.Tests/Colors/ColorPackingTests.cs
index 5fbb42b2a..563b6be3c 100644
--- a/tests/ImageSharp.Tests/Colors/ColorPackingTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorPackingTests.cs
@@ -7,6 +7,9 @@ namespace ImageSharp.Tests.Colors
{
using System.Collections.Generic;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class ColorPackingTests
diff --git a/tests/ImageSharp.Tests/Colors/ColorTests.cs b/tests/ImageSharp.Tests/Colors/ColorTests.cs
index 4bfdc883f..da63025c4 100644
--- a/tests/ImageSharp.Tests/Colors/ColorTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/ColorTransformTests.cs b/tests/ImageSharp.Tests/Colors/ColorTransformTests.cs
index 7a6f2bdf4..8d5e973b1 100644
--- a/tests/ImageSharp.Tests/Colors/ColorTransformTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorTransformTests.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Tests.Colors
{
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/ColorVectorTests.cs b/tests/ImageSharp.Tests/Colors/ColorVectorTests.cs
index 135490f40..492817015 100644
--- a/tests/ImageSharp.Tests/Colors/ColorVectorTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorVectorTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests
using System.Numerics;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/ColorVectorTransformTests.cs b/tests/ImageSharp.Tests/Colors/ColorVectorTransformTests.cs
index 3b4db9cc5..e670944f5 100644
--- a/tests/ImageSharp.Tests/Colors/ColorVectorTransformTests.cs
+++ b/tests/ImageSharp.Tests/Colors/ColorVectorTransformTests.cs
@@ -5,6 +5,7 @@
namespace ImageSharp.Tests.Colors
{
+ using ImageSharp.PixelFormats;
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs b/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs
index 14bd38063..5ec7c21bb 100644
--- a/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs
+++ b/tests/ImageSharp.Tests/Colors/PackedPixelTests.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Tests.Colors
using System.Diagnostics;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Colors/UnPackedPixelTests.cs b/tests/ImageSharp.Tests/Colors/UnPackedPixelTests.cs
index e130d7399..25a61453b 100644
--- a/tests/ImageSharp.Tests/Colors/UnPackedPixelTests.cs
+++ b/tests/ImageSharp.Tests/Colors/UnPackedPixelTests.cs
@@ -2,6 +2,8 @@
{
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class UnPackedPixelTests
diff --git a/tests/ImageSharp.Tests/Common/BufferSpanTests.cs b/tests/ImageSharp.Tests/Common/BufferSpanTests.cs
index 094b440ee..3bc59df64 100644
--- a/tests/ImageSharp.Tests/Common/BufferSpanTests.cs
+++ b/tests/ImageSharp.Tests/Common/BufferSpanTests.cs
@@ -6,6 +6,8 @@ namespace ImageSharp.Tests.Common
using System;
using System.Runtime.CompilerServices;
+ using ImageSharp.PixelFormats;
+
using Xunit;
using static TestStructs;
diff --git a/tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs b/tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs
index 077c011bb..e673b28f1 100644
--- a/tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs
+++ b/tests/ImageSharp.Tests/Common/PixelDataPoolTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests
{
using System.Linq;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/Drawing/BeziersTests.cs b/tests/ImageSharp.Tests/Drawing/BeziersTests.cs
index 9c7a76738..eb3a5de86 100644
--- a/tests/ImageSharp.Tests/Drawing/BeziersTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/BeziersTests.cs
@@ -11,6 +11,9 @@ namespace ImageSharp.Tests.Drawing
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class Beziers : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/DrawPathTests.cs b/tests/ImageSharp.Tests/Drawing/DrawPathTests.cs
index 0588c69ed..674823d3a 100644
--- a/tests/ImageSharp.Tests/Drawing/DrawPathTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/DrawPathTests.cs
@@ -5,15 +5,13 @@
namespace ImageSharp.Tests.Drawing
{
- using Drawing;
- using ImageSharp.Drawing;
using ShapePath = SixLabors.Shapes.Path;
using SixLabors.Shapes;
- using System;
- using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class DrawPathTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/FillPatternTests.cs b/tests/ImageSharp.Tests/Drawing/FillPatternTests.cs
index 130719ed7..493bab347 100644
--- a/tests/ImageSharp.Tests/Drawing/FillPatternTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/FillPatternTests.cs
@@ -10,7 +10,7 @@ namespace ImageSharp.Tests.Drawing
using ImageSharp.Drawing;
using ImageSharp.Drawing.Brushes;
-
+ using ImageSharp.PixelFormats;
using Xunit;
public class FillPatternBrushTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs b/tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs
index 7ec9925a2..9661a41bb 100644
--- a/tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/FillRegionProcessorTests.cs
@@ -1,20 +1,13 @@
namespace ImageSharp.Tests.Drawing
{
- using System;
- using System.IO;
using ImageSharp;
- using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
using Xunit;
using ImageSharp.Drawing;
- using System.Numerics;
- using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
- using ImageSharp.Drawing.Pens;
using Moq;
- using System.Collections.Immutable;
+
+ using ImageSharp.PixelFormats;
public class FillRegionProcessorTests
{
diff --git a/tests/ImageSharp.Tests/Drawing/FillSolidBrushTests.cs b/tests/ImageSharp.Tests/Drawing/FillSolidBrushTests.cs
index cfcc10738..4a3c8e305 100644
--- a/tests/ImageSharp.Tests/Drawing/FillSolidBrushTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/FillSolidBrushTests.cs
@@ -11,6 +11,9 @@ namespace ImageSharp.Tests.Drawing
using System.Diagnostics.CodeAnalysis;
using System.IO;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class FillSolidBrushTests: FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs b/tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs
index 0d8b85729..bded40f32 100644
--- a/tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/LineComplexPolygonTests.cs
@@ -11,6 +11,7 @@ namespace ImageSharp.Tests.Drawing
using ImageSharp.Drawing;
using System.Numerics;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
using SixLabors.Shapes;
diff --git a/tests/ImageSharp.Tests/Drawing/LineTests.cs b/tests/ImageSharp.Tests/Drawing/LineTests.cs
index 0671ee00a..87bda30be 100644
--- a/tests/ImageSharp.Tests/Drawing/LineTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/LineTests.cs
@@ -10,6 +10,9 @@ namespace ImageSharp.Tests.Drawing
using System.IO;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class LineTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/DrawBeziersTests.cs b/tests/ImageSharp.Tests/Drawing/Paths/DrawBeziersTests.cs
index 7c32c344d..008df9091 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/DrawBeziersTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/DrawBeziersTests.cs
@@ -2,17 +2,16 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
- using ImageSharp;
+
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
+
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class DrawBeziersTests : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/DrawLinesTests.cs b/tests/ImageSharp.Tests/Drawing/Paths/DrawLinesTests.cs
index 61ef16805..221cf7f29 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/DrawLinesTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/DrawLinesTests.cs
@@ -2,17 +2,15 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
- using ImageSharp;
+
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class DrawLinesTests : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/DrawPath.cs b/tests/ImageSharp.Tests/Drawing/Paths/DrawPath.cs
index 75486cb66..07be85b85 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/DrawPath.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/DrawPath.cs
@@ -2,17 +2,16 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
- using ImageSharp;
+
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
+
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class DrawPath : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/DrawPolygon.cs b/tests/ImageSharp.Tests/Drawing/Paths/DrawPolygon.cs
index 995e2ff1f..bd90a460d 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/DrawPolygon.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/DrawPolygon.cs
@@ -2,17 +2,16 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
- using ImageSharp;
+
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
+
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class DrawPolygon : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/DrawRectangle.cs b/tests/ImageSharp.Tests/Drawing/Paths/DrawRectangle.cs
index a6d978d80..7ebc6b14f 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/DrawRectangle.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/DrawRectangle.cs
@@ -2,17 +2,13 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
using ImageSharp;
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
using Xunit;
using ImageSharp.Drawing;
- using System.Numerics;
- using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class DrawRectangle : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs b/tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs
index e55e78739..a639a70cf 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs
@@ -2,17 +2,14 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
using ImageSharp;
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
- using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class FillPath : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs b/tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs
index 6145f9c01..2935c43a0 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/FillPolygon.cs
@@ -2,17 +2,14 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
using ImageSharp;
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
using Xunit;
using ImageSharp.Drawing;
using System.Numerics;
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
- using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class FillPolygon : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs b/tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs
index 3204a0a2a..4657db988 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/FillRectangle.cs
@@ -2,17 +2,13 @@
namespace ImageSharp.Tests.Drawing.Paths
{
using System;
- using System.IO;
- using ImageSharp;
+
using ImageSharp.Drawing.Brushes;
- using Processing;
- using System.Collections.Generic;
+
using Xunit;
using ImageSharp.Drawing;
- using System.Numerics;
- using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
- using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
public class FillRectangle : IDisposable
{
diff --git a/tests/ImageSharp.Tests/Drawing/Paths/ProcessorWatchingImage.cs b/tests/ImageSharp.Tests/Drawing/Paths/ProcessorWatchingImage.cs
index b53811073..d961a5994 100644
--- a/tests/ImageSharp.Tests/Drawing/Paths/ProcessorWatchingImage.cs
+++ b/tests/ImageSharp.Tests/Drawing/Paths/ProcessorWatchingImage.cs
@@ -6,12 +6,12 @@ namespace ImageSharp.Tests.Drawing.Paths
using ImageSharp;
using Processing;
using System.Collections.Generic;
- using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
///
/// Watches but does not actually run the processors against the image.
///
- ///
+ ///
public class ProcessorWatchingImage : Image
{
public List ProcessorApplications { get; } = new List();
diff --git a/tests/ImageSharp.Tests/Drawing/PolygonTests.cs b/tests/ImageSharp.Tests/Drawing/PolygonTests.cs
index 81b31a9c3..554c5a32e 100644
--- a/tests/ImageSharp.Tests/Drawing/PolygonTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/PolygonTests.cs
@@ -13,6 +13,8 @@ namespace ImageSharp.Tests.Drawing
using ImageSharp.Drawing;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
public class PolygonTests : FileTestBase
{
[Fact]
diff --git a/tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs b/tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs
index ef6d321ec..d3236ae00 100644
--- a/tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs
+++ b/tests/ImageSharp.Tests/Drawing/RecolorImageTest.cs
@@ -9,6 +9,8 @@ namespace ImageSharp.Tests
using System.IO;
using System.Linq;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class RecolorImageTest : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/SolidBezierTests.cs b/tests/ImageSharp.Tests/Drawing/SolidBezierTests.cs
index 3b9411fe3..0886aa15a 100644
--- a/tests/ImageSharp.Tests/Drawing/SolidBezierTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/SolidBezierTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests.Drawing
using System.IO;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using SixLabors.Shapes;
using Xunit;
diff --git a/tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs b/tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs
index 864e96099..1de7e2144 100644
--- a/tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/SolidComplexPolygonTests.cs
@@ -11,6 +11,8 @@ namespace ImageSharp.Tests.Drawing
using ImageSharp.Drawing;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using SixLabors.Shapes;
public class SolidComplexPolygonTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs b/tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs
index 3bd25050a..d76dcf023 100644
--- a/tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs
+++ b/tests/ImageSharp.Tests/Drawing/SolidPolygonTests.cs
@@ -13,6 +13,8 @@ namespace ImageSharp.Tests.Drawing
using System.Numerics;
using Xunit;
using ImageSharp.Drawing.Brushes;
+ using ImageSharp.PixelFormats;
+
using SixLabors.Shapes;
public class SolidPolygonTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Drawing/Text/DrawText.cs b/tests/ImageSharp.Tests/Drawing/Text/DrawText.cs
index 6618c3fb7..bce493a69 100644
--- a/tests/ImageSharp.Tests/Drawing/Text/DrawText.cs
+++ b/tests/ImageSharp.Tests/Drawing/Text/DrawText.cs
@@ -12,6 +12,7 @@ namespace ImageSharp.Tests.Drawing.Text
using ImageSharp.Drawing.Brushes;
using ImageSharp.Drawing.Pens;
using ImageSharp.Drawing.Processors;
+ using ImageSharp.PixelFormats;
using ImageSharp.Tests.Drawing.Paths;
using SixLabors.Fonts;
diff --git a/tests/ImageSharp.Tests/Drawing/Text/OutputText.cs b/tests/ImageSharp.Tests/Drawing/Text/OutputText.cs
index d3c34ce8f..1dbc93b9b 100644
--- a/tests/ImageSharp.Tests/Drawing/Text/OutputText.cs
+++ b/tests/ImageSharp.Tests/Drawing/Text/OutputText.cs
@@ -13,6 +13,8 @@ namespace ImageSharp.Tests.Drawing.Text
using SixLabors.Shapes;
using ImageSharp.Drawing.Processors;
using ImageSharp.Drawing.Pens;
+ using ImageSharp.PixelFormats;
+
using SixLabors.Fonts;
public class OutputText : FileTestBase
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/BadEofJpegTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/BadEofJpegTests.cs
index 453f689f2..dc6985dd3 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/BadEofJpegTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/BadEofJpegTests.cs
@@ -17,6 +17,7 @@ namespace ImageSharp.Tests
using System.Numerics;
using ImageSharp.Formats.Jpg;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
public class BadEOFJpegTests : MeasureFixture
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
index 60f310bbd..1bcc72c43 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
@@ -10,6 +10,7 @@ namespace ImageSharp.Tests
using System.IO;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
using Xunit;
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs
index 5bc5e780c..d5f7c2ea3 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegEncoderTests.cs
@@ -15,6 +15,7 @@ using Xunit.Abstractions;
namespace ImageSharp.Tests
{
using ImageSharp.Formats.Jpg;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
public class JpegEncoderTests : MeasureFixture
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs
index dfe132485..5150925b4 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegProfilingBenchmarks.cs
@@ -11,6 +11,7 @@ namespace ImageSharp.Tests
using System.Numerics;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
using Xunit;
using Xunit.Abstractions;
diff --git a/tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs b/tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs
index 117a5354f..f242faf12 100644
--- a/tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs
@@ -10,6 +10,7 @@ namespace ImageSharp.Tests
using System.Numerics;
using ImageSharp.Formats.Jpg;
+ using ImageSharp.PixelFormats;
using Xunit;
diff --git a/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
index b70df9c17..ae4dfc1e9 100644
--- a/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Png/PngEncoderTests.cs
@@ -11,6 +11,8 @@ namespace ImageSharp.Tests
using System.Linq;
using System.Threading.Tasks;
using ImageSharp.IO;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class PngEncoderTests : FileTestBase
diff --git a/tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs b/tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs
index 1e3879a93..46ade9f9a 100644
--- a/tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs
+++ b/tests/ImageSharp.Tests/Formats/Png/PngSmokeTests.cs
@@ -15,6 +15,8 @@ namespace ImageSharp.Tests.Formats.Png
using ImageSharp.IO;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
public class PngSmokeTests
{
[Theory]
diff --git a/tests/ImageSharp.Tests/Image/ImageLoadTests.cs b/tests/ImageSharp.Tests/Image/ImageLoadTests.cs
index bcec99573..505074a6a 100644
--- a/tests/ImageSharp.Tests/Image/ImageLoadTests.cs
+++ b/tests/ImageSharp.Tests/Image/ImageLoadTests.cs
@@ -7,9 +7,10 @@ namespace ImageSharp.Tests
{
using System;
using System.IO;
- using System.Linq;
+
using ImageSharp.Formats;
using ImageSharp.IO;
+ using ImageSharp.PixelFormats;
using Moq;
using Xunit;
diff --git a/tests/ImageSharp.Tests/Image/ImageSaveTests.cs b/tests/ImageSharp.Tests/Image/ImageSaveTests.cs
index 9f2a6f8c2..902bedb5e 100644
--- a/tests/ImageSharp.Tests/Image/ImageSaveTests.cs
+++ b/tests/ImageSharp.Tests/Image/ImageSaveTests.cs
@@ -10,6 +10,8 @@ namespace ImageSharp.Tests
using System.Linq;
using ImageSharp.Formats;
using ImageSharp.IO;
+ using ImageSharp.PixelFormats;
+
using Moq;
using Xunit;
diff --git a/tests/ImageSharp.Tests/Image/PixelAccessorTests.cs b/tests/ImageSharp.Tests/Image/PixelAccessorTests.cs
index b48ffd7e9..a6c4b4545 100644
--- a/tests/ImageSharp.Tests/Image/PixelAccessorTests.cs
+++ b/tests/ImageSharp.Tests/Image/PixelAccessorTests.cs
@@ -8,6 +8,8 @@ namespace ImageSharp.Tests
using System;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/ImageComparer.cs b/tests/ImageSharp.Tests/ImageComparer.cs
index 37b367931..7d0a8377d 100644
--- a/tests/ImageSharp.Tests/ImageComparer.cs
+++ b/tests/ImageSharp.Tests/ImageComparer.cs
@@ -2,6 +2,8 @@
{
using System;
using ImageSharp;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs
index f7490473d..6a832859a 100644
--- a/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs
+++ b/tests/ImageSharp.Tests/MetaData/Profiles/Exif/ExifProfileTests.cs
@@ -10,6 +10,9 @@ namespace ImageSharp.Tests
using System.IO;
using System.Linq;
using System.Text;
+
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class ExifProfileTests
diff --git a/tests/ImageSharp.Tests/Processors/Filters/BackgroundColorTest.cs b/tests/ImageSharp.Tests/Processors/Filters/BackgroundColorTest.cs
index e4f348203..eccfc13af 100644
--- a/tests/ImageSharp.Tests/Processors/Filters/BackgroundColorTest.cs
+++ b/tests/ImageSharp.Tests/Processors/Filters/BackgroundColorTest.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System.IO;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class BackgroundColorTest : FileTestBase
diff --git a/tests/ImageSharp.Tests/Processors/Filters/GlowTest.cs b/tests/ImageSharp.Tests/Processors/Filters/GlowTest.cs
index 4fee996e6..ad1048845 100644
--- a/tests/ImageSharp.Tests/Processors/Filters/GlowTest.cs
+++ b/tests/ImageSharp.Tests/Processors/Filters/GlowTest.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System.IO;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class GlowTest : FileTestBase
diff --git a/tests/ImageSharp.Tests/Processors/Filters/GrayscaleTest.cs b/tests/ImageSharp.Tests/Processors/Filters/GrayscaleTest.cs
index f4b3c31ef..2b717a0b7 100644
--- a/tests/ImageSharp.Tests/Processors/Filters/GrayscaleTest.cs
+++ b/tests/ImageSharp.Tests/Processors/Filters/GrayscaleTest.cs
@@ -12,6 +12,8 @@ namespace ImageSharp.Tests
using ImageSharp.Tests;
using System.Numerics;
+ using ImageSharp.PixelFormats;
+
public class GrayscaleTest : FileTestBase
{
///
diff --git a/tests/ImageSharp.Tests/Processors/Filters/ResizeProfilingBenchmarks.cs b/tests/ImageSharp.Tests/Processors/Filters/ResizeProfilingBenchmarks.cs
index f5c627d92..917bb895c 100644
--- a/tests/ImageSharp.Tests/Processors/Filters/ResizeProfilingBenchmarks.cs
+++ b/tests/ImageSharp.Tests/Processors/Filters/ResizeProfilingBenchmarks.cs
@@ -3,6 +3,7 @@ namespace ImageSharp.Tests
using System.IO;
using System.Text;
+ using ImageSharp.PixelFormats;
using ImageSharp.Processing;
using ImageSharp.Processing.Processors;
diff --git a/tests/ImageSharp.Tests/Processors/Filters/VignetteTest.cs b/tests/ImageSharp.Tests/Processors/Filters/VignetteTest.cs
index 1519678ac..89794aeaf 100644
--- a/tests/ImageSharp.Tests/Processors/Filters/VignetteTest.cs
+++ b/tests/ImageSharp.Tests/Processors/Filters/VignetteTest.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System.IO;
+ using ImageSharp.PixelFormats;
+
using Xunit;
public class VignetteTest : FileTestBase
diff --git a/tests/ImageSharp.Tests/TestFormat.cs b/tests/ImageSharp.Tests/TestFormat.cs
index 3c4edb7b0..318df5ead 100644
--- a/tests/ImageSharp.Tests/TestFormat.cs
+++ b/tests/ImageSharp.Tests/TestFormat.cs
@@ -12,6 +12,8 @@ namespace ImageSharp.Tests
using System.Linq;
using System.Reflection;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
+
using Xunit;
///
diff --git a/tests/ImageSharp.Tests/TestUtilities/Factories/GenericFactory.cs b/tests/ImageSharp.Tests/TestUtilities/Factories/GenericFactory.cs
index 2791c25b1..4a0950788 100644
--- a/tests/ImageSharp.Tests/TestUtilities/Factories/GenericFactory.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/Factories/GenericFactory.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Utility class to create specialized subclasses of generic classes (eg. )
/// Used as parameter for -based factory methods
diff --git a/tests/ImageSharp.Tests/TestUtilities/Factories/ImageFactory.cs b/tests/ImageSharp.Tests/TestUtilities/Factories/ImageFactory.cs
index 6e82e628c..c4d758bd6 100644
--- a/tests/ImageSharp.Tests/TestUtilities/Factories/ImageFactory.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/Factories/ImageFactory.cs
@@ -5,6 +5,8 @@
namespace ImageSharp.Tests
{
+ using ImageSharp.PixelFormats;
+
public class ImageFactory : GenericFactory
{
public override Image CreateImage(byte[] bytes) => Image.Load(bytes);
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/BlankProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/BlankProvider.cs
index e7512cb2d..4252a60b5 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/BlankProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/BlankProvider.cs
@@ -6,6 +6,9 @@
namespace ImageSharp.Tests
{
using System;
+
+ using ImageSharp.PixelFormats;
+
using Xunit.Abstractions;
public abstract partial class TestImageProvider
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs
index 1b7bbe4e7..4217d52b0 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/FileProvider.cs
@@ -7,6 +7,9 @@ namespace ImageSharp.Tests
{
using System;
using System.Collections.Concurrent;
+
+ using ImageSharp.PixelFormats;
+
using Xunit.Abstractions;
public abstract partial class TestImageProvider
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/LambdaProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/LambdaProvider.cs
index 8739d556d..30e7a63b5 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/LambdaProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/LambdaProvider.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System;
+ using ImageSharp.PixelFormats;
+
///
/// Provides instances for parametric unit tests.
///
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/SolidProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/SolidProvider.cs
index c2c903e9e..65d55da55 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/SolidProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/SolidProvider.cs
@@ -6,6 +6,9 @@
namespace ImageSharp.Tests
{
using System;
+
+ using ImageSharp.PixelFormats;
+
using Xunit.Abstractions;
///
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestImageProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
index 643e70617..9d6f46b72 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
@@ -7,6 +7,9 @@ namespace ImageSharp.Tests
{
using System;
using System.Reflection;
+
+ using ImageSharp.PixelFormats;
+
using Xunit.Abstractions;
///
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestPatternProvider.cs b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestPatternProvider.cs
index fb30e7fe4..96d38fc40 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestPatternProvider.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImageProviders/TestPatternProvider.cs
@@ -8,6 +8,9 @@ namespace ImageSharp.Tests
using System;
using System.Collections.Generic;
using System.Numerics;
+
+ using ImageSharp.PixelFormats;
+
using Xunit.Abstractions;
public abstract partial class TestImageProvider
diff --git a/tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs b/tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs
index 43a19040a..6476c4ecf 100644
--- a/tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/ImagingTestCaseUtility.cs
@@ -11,6 +11,7 @@ namespace ImageSharp.Tests
using System.Reflection;
using ImageSharp.Formats;
+ using ImageSharp.PixelFormats;
///
/// Utility class to provide information about the test image & the test case for the test code,
diff --git a/tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs b/tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs
index 2a7ea352b..5408d5362 100644
--- a/tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs
@@ -5,6 +5,8 @@ namespace ImageSharp.Tests
using System.Collections.Generic;
using System.Text;
+ using ImageSharp.PixelFormats;
+
public static class TestImageExtensions
{
public static void DebugSave(this Image img, TestImageProvider provider, string extension = "png")
diff --git a/tests/ImageSharp.Tests/TestUtilities/TestUtilityExtensions.cs b/tests/ImageSharp.Tests/TestUtilities/TestUtilityExtensions.cs
index 2f28896b3..de05e83a9 100644
--- a/tests/ImageSharp.Tests/TestUtilities/TestUtilityExtensions.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/TestUtilityExtensions.cs
@@ -11,6 +11,8 @@ namespace ImageSharp.Tests
using System.Linq;
using System.Reflection;
+ using ImageSharp.PixelFormats;
+
///
/// Extension methods for TestUtilities
///
diff --git a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs
index 0f4025ee4..7d176c1e3 100644
--- a/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/Tests/TestImageProviderTests.cs
@@ -7,6 +7,8 @@ namespace ImageSharp.Tests
{
using System;
+ using ImageSharp.PixelFormats;
+
using Xunit;
using Xunit.Abstractions;
diff --git a/tests/ImageSharp.Tests/TestUtilities/Tests/TestUtilityExtensionsTests.cs b/tests/ImageSharp.Tests/TestUtilities/Tests/TestUtilityExtensionsTests.cs
index f47123ef7..29623e1b5 100644
--- a/tests/ImageSharp.Tests/TestUtilities/Tests/TestUtilityExtensionsTests.cs
+++ b/tests/ImageSharp.Tests/TestUtilities/Tests/TestUtilityExtensionsTests.cs
@@ -11,6 +11,8 @@ namespace ImageSharp.Tests
using System.Numerics;
using System.Reflection;
+ using ImageSharp.PixelFormats;
+
using Xunit;
using Xunit.Abstractions;
@@ -51,7 +53,7 @@ namespace ImageSharp.Tests
[Fact]
public void Baz()
{
- Type type = typeof(Rgba32).GetTypeInfo().Assembly.GetType("ImageSharp.Rgba32");
+ Type type = typeof(Rgba32).GetTypeInfo().Assembly.GetType("ImageSharp.PixelFormats.Rgba32");
this.Output.WriteLine(type.ToString());
Type fake = typeof(Rgba32).GetTypeInfo().Assembly.GetType("ImageSharp.dsaada_DASqewrr");