From 3e5c8f7b5d35030d2da796664aefd9b1b7365d53 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 22 Apr 2017 08:21:02 +1000 Subject: [PATCH] Move IPixel types to PixelFormat namespace --- src/ImageSharp.Drawing/Brushes/Brushes.cs | 2 ++ .../Brushes/Brushes{TPixel}.cs | 2 +- src/ImageSharp.Drawing/Brushes/IBrush.cs | 3 +-- src/ImageSharp.Drawing/Brushes/ImageBrush.cs | 2 ++ .../Brushes/ImageBrush{TPixel}.cs | 2 +- src/ImageSharp.Drawing/Brushes/PatternBrush.cs | 2 ++ .../Brushes/PatternBrush{TPixel}.cs | 2 +- .../Brushes/Processors/BrushApplicator.cs | 2 +- src/ImageSharp.Drawing/Brushes/RecolorBrush.cs | 2 ++ .../Brushes/RecolorBrush{TPixel}.cs | 3 +-- src/ImageSharp.Drawing/Brushes/SolidBrush.cs | 2 ++ .../Brushes/SolidBrush{TPixel}.cs | 3 +-- src/ImageSharp.Drawing/DrawImage.cs | 3 +-- src/ImageSharp.Drawing/DrawPath.cs | 3 +-- src/ImageSharp.Drawing/FillRegion.cs | 3 +-- src/ImageSharp.Drawing/Paths/DrawBeziers.cs | 3 +-- src/ImageSharp.Drawing/Paths/DrawLines.cs | 3 +-- src/ImageSharp.Drawing/Paths/DrawPath.cs | 4 +--- src/ImageSharp.Drawing/Paths/DrawPolygon.cs | 3 +-- src/ImageSharp.Drawing/Paths/DrawRectangle.cs | 3 +-- src/ImageSharp.Drawing/Paths/FillPaths.cs | 4 +--- src/ImageSharp.Drawing/Paths/FillPolygon.cs | 2 +- src/ImageSharp.Drawing/Paths/FillRectangle.cs | 3 +-- src/ImageSharp.Drawing/Pens/IPen.cs | 2 +- src/ImageSharp.Drawing/Pens/Pen.cs | 2 ++ src/ImageSharp.Drawing/Pens/Pens.cs | 2 ++ src/ImageSharp.Drawing/Pens/Pens{TPixel}.cs | 2 ++ src/ImageSharp.Drawing/Pens/Pen{TPixel}.cs | 2 +- .../Pens/Processors/ColoredPointInfo.cs | 2 +- .../Pens/Processors/PenApplicator.cs | 2 +- .../Processors/DrawImageProcessor.cs | 2 +- .../Processors/DrawPathProcessor.cs | 2 +- .../Processors/FillProcessor.cs | 1 + .../Processors/FillRegionProcessor.cs | 3 +-- src/ImageSharp.Drawing/Text/DrawText.cs | 2 +- src/ImageSharp/Colors/Spaces/Bgra32.cs | 1 + src/ImageSharp/Colors/Spaces/CieLab.cs | 1 + src/ImageSharp/Colors/Spaces/CieXyz.cs | 1 + src/ImageSharp/Colors/Spaces/Cmyk.cs | 1 + src/ImageSharp/Colors/Spaces/Hsl.cs | 1 + src/ImageSharp/Colors/Spaces/Hsv.cs | 1 + src/ImageSharp/Colors/Spaces/YCbCr.cs | 1 + .../Common/Extensions/Vector4Extensions.cs | 1 + src/ImageSharp/Common/Helpers/ImageMaths.cs | 2 ++ src/ImageSharp/Common/Memory/PixelDataPool{T}.cs | 2 ++ .../Dithering/ErrorDiffusion/ErrorDiffuser.cs | 2 ++ .../Dithering/ErrorDiffusion/IErrorDiffuser.cs | 2 +- .../Dithering/Ordered/IOrderedDither.cs | 2 ++ .../Dithering/Ordered/OrderedDither4x4.cs | 2 ++ src/ImageSharp/Formats/Bmp/BmpDecoder.cs | 2 ++ src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs | 2 ++ src/ImageSharp/Formats/Bmp/BmpEncoder.cs | 2 ++ src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs | 2 ++ src/ImageSharp/Formats/Bmp/ImageExtensions.cs | 2 ++ src/ImageSharp/Formats/Gif/GifDecoder.cs | 2 ++ src/ImageSharp/Formats/Gif/GifDecoderCore.cs | 2 ++ src/ImageSharp/Formats/Gif/GifEncoder.cs | 2 ++ src/ImageSharp/Formats/Gif/GifEncoderCore.cs | 2 ++ src/ImageSharp/Formats/Gif/ImageExtensions.cs | 2 ++ src/ImageSharp/Formats/IImageDecoder.cs | 2 ++ src/ImageSharp/Formats/IImageEncoder.cs | 2 ++ src/ImageSharp/Formats/Jpeg/ImageExtensions.cs | 2 ++ src/ImageSharp/Formats/Jpeg/JpegDecoder.cs | 2 ++ src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs | 1 + src/ImageSharp/Formats/Jpeg/JpegEncoder.cs | 2 ++ src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs | 1 + src/ImageSharp/Formats/Jpeg/Utils/JpegUtils.cs | 2 ++ src/ImageSharp/Formats/Png/ImageExtensions.cs | 2 ++ src/ImageSharp/Formats/Png/PngDecoder.cs | 2 ++ src/ImageSharp/Formats/Png/PngDecoderCore.cs | 2 ++ src/ImageSharp/Formats/Png/PngEncoder.cs | 2 ++ src/ImageSharp/Formats/Png/PngEncoderCore.cs | 2 ++ src/ImageSharp/Image.Create.cs | 2 ++ src/ImageSharp/Image.Decode.cs | 2 ++ src/ImageSharp/Image.FromBytes.cs | 2 ++ src/ImageSharp/Image.FromFile.cs | 1 + src/ImageSharp/Image.FromStream.cs | 3 +++ src/ImageSharp/Image.cs | 1 + src/ImageSharp/Image/IImageBase{TPixel}.cs | 1 + src/ImageSharp/Image/IImageProcessor.cs | 2 ++ src/ImageSharp/Image/ImageBase{TPixel}.cs | 1 + src/ImageSharp/Image/ImageFrame{TPixel}.cs | 1 + .../Image/ImageProcessingExtensions.cs | 2 ++ src/ImageSharp/Image/Image{TPixel}.cs | 1 + src/ImageSharp/Image/PixelAccessor{TPixel}.cs | 1 + src/ImageSharp/Image/PixelArea{TPixel}.cs | 2 +- src/ImageSharp/ImageProcessor.cs | 2 ++ .../MetaData/Profiles/Exif/ExifProfile.cs | 2 ++ .../PackedPixel => PixelFormats}/Alpha8.cs | 2 +- .../PackedPixel => PixelFormats}/Argb32.cs | 3 +-- .../PackedPixel => PixelFormats}/Bgr565.cs | 2 +- .../PackedPixel => PixelFormats}/Bgra4444.cs | 2 +- .../PackedPixel => PixelFormats}/Bgra5551.cs | 2 +- .../BulkPixelOperations{TPixel}.cs | 2 +- .../PackedPixel => PixelFormats}/Byte4.cs | 2 +- .../ColorBuilder{TPixel}.cs | 2 +- .../{Colors => PixelFormats}/ColorConstants.cs | 2 +- .../{Colors => PixelFormats}/ComponentOrder.cs | 2 +- .../PackedPixel => PixelFormats}/HalfSingle.cs | 3 +-- .../HalfTypeHelper.cs | 2 +- .../PackedPixel => PixelFormats}/HalfVector2.cs | 3 +-- .../PackedPixel => PixelFormats}/HalfVector4.cs | 3 +-- .../IPackedVector{TPacked}.cs | 3 +-- .../PackedPixel => PixelFormats}/IPixel.cs | 2 +- .../NamedColors{TPixel}.cs | 2 +- .../NormalizedByte2.cs | 2 +- .../NormalizedByte4.cs | 2 +- .../NormalizedShort2.cs | 3 +-- .../NormalizedShort4.cs | 3 +-- .../PackedPixelConverterHelper.cs | 2 +- .../PackedPixel => PixelFormats}/README.md | 0 .../{Colors/PackedPixel => PixelFormats}/Rg32.cs | 2 +- .../PackedPixel => PixelFormats}/Rgba1010102.cs | 2 +- .../Rgba32.BulkOperations.cs | 2 +- .../Rgba32.ColorspaceTransforms.cs | 2 +- .../Rgba32.Definitions.cs | 2 +- .../Rgba32.Transforms.cs | 2 +- .../{Colors => PixelFormats}/Rgba32.cs | 2 +- .../PackedPixel => PixelFormats}/Rgba64.cs | 2 +- .../{Colors => PixelFormats}/RgbaComponent.cs | 0 .../RgbaVector.BulkOperations.cs | 2 +- .../RgbaVector.Definitions.cs | 2 +- .../RgbaVector.Transforms.cs | 2 +- .../{Colors => PixelFormats}/RgbaVector.cs | 2 +- .../PackedPixel => PixelFormats}/Short2.cs | 2 +- .../PackedPixel => PixelFormats}/Short4.cs | 2 +- .../Vector4BlendTransforms.cs | 2 +- .../Processing/Binarization/BinaryThreshold.cs | 2 ++ src/ImageSharp/Processing/Binarization/Dither.cs | 1 + .../Processing/ColorMatrix/BlackWhite.cs | 2 ++ .../Processing/ColorMatrix/ColorBlindness.cs | 2 ++ .../Processing/ColorMatrix/Grayscale.cs | 2 ++ src/ImageSharp/Processing/ColorMatrix/Hue.cs | 2 ++ .../Processing/ColorMatrix/Kodachrome.cs | 2 ++ .../Processing/ColorMatrix/Lomograph.cs | 2 ++ .../Processing/ColorMatrix/Polaroid.cs | 2 ++ .../Processing/ColorMatrix/Saturation.cs | 2 ++ src/ImageSharp/Processing/ColorMatrix/Sepia.cs | 2 ++ src/ImageSharp/Processing/Convolution/BoxBlur.cs | 2 ++ .../Processing/Convolution/DetectEdges.cs | 2 ++ .../Processing/Convolution/GaussianBlur.cs | 2 ++ .../Processing/Convolution/GaussianSharpen.cs | 2 ++ src/ImageSharp/Processing/Effects/Alpha.cs | 2 ++ .../Processing/Effects/BackgroundColor.cs | 2 ++ src/ImageSharp/Processing/Effects/Brightness.cs | 2 ++ src/ImageSharp/Processing/Effects/Contrast.cs | 2 ++ src/ImageSharp/Processing/Effects/Invert.cs | 2 ++ src/ImageSharp/Processing/Effects/OilPainting.cs | 2 ++ src/ImageSharp/Processing/Effects/Pixelate.cs | 2 ++ src/ImageSharp/Processing/Overlays/Glow.cs | 2 ++ src/ImageSharp/Processing/Overlays/Vignette.cs | 2 ++ .../Binarization/BinaryThresholdProcessor.cs | 2 ++ .../ErrorDiffusionDitherProcessor.cs | 1 + .../Binarization/OrderedDitherProcessor.cs | 1 + .../ColorMatrix/BlackWhiteProcessor.cs | 2 ++ .../ColorBlindness/AchromatomalyProcessor.cs | 2 ++ .../ColorBlindness/AchromatopsiaProcessor.cs | 2 ++ .../ColorBlindness/DeuteranomalyProcessor.cs | 2 ++ .../ColorBlindness/DeuteranopiaProcessor.cs | 2 ++ .../ColorBlindness/ProtanomalyProcessor.cs | 2 ++ .../ColorBlindness/ProtanopiaProcessor.cs | 2 ++ .../ColorBlindness/TritanomalyProcessor.cs | 2 ++ .../ColorBlindness/TritanopiaProcessor.cs | 2 ++ .../ColorMatrix/ColorMatrixProcessor.cs | 2 ++ .../ColorMatrix/GrayscaleBt601Processor.cs | 2 ++ .../ColorMatrix/GrayscaleBt709Processor.cs | 2 ++ .../Processors/ColorMatrix/HueProcessor.cs | 2 ++ .../Processors/ColorMatrix/IColorMatrixFilter.cs | 2 ++ .../ColorMatrix/KodachromeProcessor.cs | 2 ++ .../Processors/ColorMatrix/LomographProcessor.cs | 2 ++ .../Processors/ColorMatrix/PolaroidProcessor.cs | 2 ++ .../ColorMatrix/SaturationProcessor.cs | 2 ++ .../Processors/ColorMatrix/SepiaProcessor.cs | 2 ++ .../Processors/Convolution/BoxBlurProcessor.cs | 2 ++ .../Convolution/Convolution2DProcessor.cs | 2 ++ .../Convolution/Convolution2PassProcessor.cs | 2 ++ .../Convolution/ConvolutionProcessor.cs | 2 ++ .../EdgeDetection/EdgeDetector2DProcessor.cs | 2 ++ .../EdgeDetectorCompassProcessor.cs | 2 ++ .../EdgeDetection/EdgeDetectorProcessor.cs | 2 ++ .../EdgeDetection/IEdgeDetectorProcessor.cs | 2 ++ .../EdgeDetection/KayyaliProcessor.cs | 2 ++ .../Convolution/EdgeDetection/KirschProcessor.cs | 2 ++ .../EdgeDetection/Laplacian3X3Processor.cs | 2 ++ .../EdgeDetection/Laplacian5X5Processor.cs | 2 ++ .../LaplacianOfGaussianProcessor.cs | 2 ++ .../EdgeDetection/PrewittProcessor.cs | 2 ++ .../EdgeDetection/RobertsCrossProcessor.cs | 2 ++ .../EdgeDetection/RobinsonProcessor.cs | 2 ++ .../Convolution/EdgeDetection/ScharrProcessor.cs | 2 ++ .../Convolution/EdgeDetection/SobelProcessor.cs | 2 ++ .../Convolution/GaussianBlurProcessor.cs | 2 ++ .../Convolution/GaussianSharpenProcessor.cs | 2 ++ .../Processors/Effects/AlphaProcessor.cs | 2 ++ .../Effects/BackgroundColorProcessor.cs | 2 ++ .../Processors/Effects/BrightnessProcessor.cs | 2 ++ .../Processors/Effects/ContrastProcessor.cs | 2 ++ .../Processors/Effects/InvertProcessor.cs | 2 ++ .../Processors/Effects/OilPaintingProcessor.cs | 2 ++ .../Processors/Effects/PixelateProcessor.cs | 2 ++ .../Processors/Overlays/GlowProcessor.cs | 2 ++ .../Processors/Overlays/VignetteProcessor.cs | 2 ++ .../Processors/Transforms/CropProcessor.cs | 2 ++ .../Transforms/EntropyCropProcessor.cs | 2 ++ .../Processors/Transforms/FlipProcessor.cs | 2 ++ .../Processors/Transforms/Matrix3x2Processor.cs | 2 ++ .../Transforms/ResamplingWeightedProcessor.cs | 2 ++ .../Processors/Transforms/ResizeProcessor.cs | 2 ++ .../Processors/Transforms/RotateProcessor.cs | 2 ++ .../Processors/Transforms/SkewProcessor.cs | 2 ++ .../Processing/Transforms/AutoOrient.cs | 3 +++ src/ImageSharp/Processing/Transforms/Crop.cs | 2 ++ .../Processing/Transforms/EntropyCrop.cs | 2 ++ src/ImageSharp/Processing/Transforms/Flip.cs | 2 ++ .../Transforms/Options/ResizeHelper.cs | 2 ++ src/ImageSharp/Processing/Transforms/Pad.cs | 2 ++ src/ImageSharp/Processing/Transforms/Resize.cs | 2 ++ src/ImageSharp/Processing/Transforms/Rotate.cs | 2 ++ .../Processing/Transforms/RotateFlip.cs | 3 +++ src/ImageSharp/Processing/Transforms/Skew.cs | 2 ++ src/ImageSharp/Quantizers/IQuantizer{TPixel}.cs | 1 + .../Quantizers/OctreeQuantizer{TPixel}.cs | 1 + .../Quantizers/PaletteQuantizer{TPixel}.cs | 1 + src/ImageSharp/Quantizers/Quantize.cs | 1 + .../Quantizers/QuantizedImage{TPixel}.cs | 1 + src/ImageSharp/Quantizers/Quantizer{TPixel}.cs | 2 +- src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs | 1 + .../Bulk/PackFromVector4ReferenceVsPointer.cs | 11 ++++++----- .../Color/Bulk/PackFromXyzw.cs | 2 +- .../Color/Bulk/ToVector4.cs | 4 +++- tests/ImageSharp.Benchmarks/Color/Bulk/ToXyz.cs | 2 +- tests/ImageSharp.Benchmarks/Color/Bulk/ToXyzw.cs | 3 +-- .../ImageSharp.Benchmarks/Color/ColorEquality.cs | 5 +++-- .../ImageSharp.Benchmarks/Drawing/DrawBeziers.cs | 5 +++-- tests/ImageSharp.Benchmarks/Drawing/DrawLines.cs | 5 +++-- .../ImageSharp.Benchmarks/Drawing/DrawPolygon.cs | 5 +++-- .../ImageSharp.Benchmarks/Drawing/FillPolygon.cs | 7 ++++--- .../Drawing/FillRectangle.cs | 7 ++++--- .../Drawing/FillWithPattern.cs | 6 ++++-- .../ImageSharp.Benchmarks/General/ClearBuffer.cs | 4 ++-- tests/ImageSharp.Benchmarks/Image/CopyPixels.cs | 9 +++++---- .../Image/EncodeIndexedPng.cs | 1 + tests/ImageSharp.Benchmarks/Image/EncodePng.cs | 9 +++++---- tests/ImageSharp.Benchmarks/Image/GetSetPixel.cs | 9 +++++---- tests/ImageSharp.Benchmarks/Samplers/Resize.cs | 8 +++++--- .../Colors/BulkPixelOperationsTests.cs | 16 +++++++++------- .../Colors/ColorConstructorTests.cs | 3 +++ .../Colors/ColorConversionTests.cs | 1 + .../Colors/ColorDefinitionTests.cs | 2 ++ .../Colors/ColorEqualityTests.cs | 2 ++ .../ImageSharp.Tests/Colors/ColorPackingTests.cs | 3 +++ tests/ImageSharp.Tests/Colors/ColorTests.cs | 2 ++ .../Colors/ColorTransformTests.cs | 2 ++ .../ImageSharp.Tests/Colors/ColorVectorTests.cs | 2 ++ .../Colors/ColorVectorTransformTests.cs | 1 + .../ImageSharp.Tests/Colors/PackedPixelTests.cs | 2 ++ .../Colors/UnPackedPixelTests.cs | 2 ++ tests/ImageSharp.Tests/Common/BufferSpanTests.cs | 2 ++ .../Common/PixelDataPoolTests.cs | 2 ++ tests/ImageSharp.Tests/Drawing/BeziersTests.cs | 3 +++ tests/ImageSharp.Tests/Drawing/DrawPathTests.cs | 6 ++---- .../ImageSharp.Tests/Drawing/FillPatternTests.cs | 2 +- .../Drawing/FillRegionProcessorTests.cs | 11 ++--------- .../Drawing/FillSolidBrushTests.cs | 3 +++ .../Drawing/LineComplexPolygonTests.cs | 1 + tests/ImageSharp.Tests/Drawing/LineTests.cs | 3 +++ .../Drawing/Paths/DrawBeziersTests.cs | 7 +++---- .../Drawing/Paths/DrawLinesTests.cs | 6 ++---- tests/ImageSharp.Tests/Drawing/Paths/DrawPath.cs | 7 +++---- .../Drawing/Paths/DrawPolygon.cs | 7 +++---- .../Drawing/Paths/DrawRectangle.cs | 6 +----- tests/ImageSharp.Tests/Drawing/Paths/FillPath.cs | 5 +---- .../Drawing/Paths/FillPolygon.cs | 5 +---- .../Drawing/Paths/FillRectangle.cs | 10 +++------- .../Drawing/Paths/ProcessorWatchingImage.cs | 4 ++-- tests/ImageSharp.Tests/Drawing/PolygonTests.cs | 2 ++ .../ImageSharp.Tests/Drawing/RecolorImageTest.cs | 2 ++ .../ImageSharp.Tests/Drawing/SolidBezierTests.cs | 2 ++ .../Drawing/SolidComplexPolygonTests.cs | 2 ++ .../Drawing/SolidPolygonTests.cs | 2 ++ tests/ImageSharp.Tests/Drawing/Text/DrawText.cs | 1 + .../ImageSharp.Tests/Drawing/Text/OutputText.cs | 2 ++ .../Formats/Jpg/BadEofJpegTests.cs | 1 + .../Formats/Jpg/JpegDecoderTests.cs | 1 + .../Formats/Jpg/JpegEncoderTests.cs | 1 + .../Formats/Jpg/JpegProfilingBenchmarks.cs | 1 + .../Formats/Jpg/JpegUtilsTests.cs | 1 + .../Formats/Png/PngEncoderTests.cs | 2 ++ .../Formats/Png/PngSmokeTests.cs | 2 ++ tests/ImageSharp.Tests/Image/ImageLoadTests.cs | 3 ++- tests/ImageSharp.Tests/Image/ImageSaveTests.cs | 2 ++ .../ImageSharp.Tests/Image/PixelAccessorTests.cs | 2 ++ tests/ImageSharp.Tests/ImageComparer.cs | 2 ++ .../MetaData/Profiles/Exif/ExifProfileTests.cs | 3 +++ .../Processors/Filters/BackgroundColorTest.cs | 2 ++ .../Processors/Filters/GlowTest.cs | 2 ++ .../Processors/Filters/GrayscaleTest.cs | 2 ++ .../Filters/ResizeProfilingBenchmarks.cs | 1 + .../Processors/Filters/VignetteTest.cs | 2 ++ tests/ImageSharp.Tests/TestFormat.cs | 2 ++ .../TestUtilities/Factories/GenericFactory.cs | 2 ++ .../TestUtilities/Factories/ImageFactory.cs | 2 ++ .../ImageProviders/BlankProvider.cs | 3 +++ .../TestUtilities/ImageProviders/FileProvider.cs | 3 +++ .../ImageProviders/LambdaProvider.cs | 2 ++ .../ImageProviders/SolidProvider.cs | 3 +++ .../ImageProviders/TestImageProvider.cs | 3 +++ .../ImageProviders/TestPatternProvider.cs | 3 +++ .../TestUtilities/ImagingTestCaseUtility.cs | 1 + .../TestUtilities/TestImageExtensions.cs | 2 ++ .../TestUtilities/TestUtilityExtensions.cs | 2 ++ .../Tests/TestImageProviderTests.cs | 2 ++ .../Tests/TestUtilityExtensionsTests.cs | 4 +++- 313 files changed, 563 insertions(+), 193 deletions(-) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Alpha8.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Argb32.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Bgr565.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Bgra4444.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Bgra5551.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/BulkPixelOperations{TPixel}.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Byte4.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/ColorBuilder{TPixel}.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/ColorConstants.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/ComponentOrder.cs (96%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/HalfSingle.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/HalfTypeHelper.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/HalfVector2.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/HalfVector4.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/IPackedVector{TPacked}.cs (94%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/IPixel.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/NamedColors{TPixel}.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/NormalizedByte2.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/NormalizedByte4.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/NormalizedShort2.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/NormalizedShort4.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/PackedPixelConverterHelper.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/README.md (100%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Rg32.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Rgba1010102.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Rgba32.BulkOperations.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Rgba32.ColorspaceTransforms.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Rgba32.Definitions.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Rgba32.Transforms.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Rgba32.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Rgba64.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/RgbaComponent.cs (100%) rename src/ImageSharp/{Colors => PixelFormats}/RgbaVector.BulkOperations.cs (97%) rename src/ImageSharp/{Colors => PixelFormats}/RgbaVector.Definitions.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/RgbaVector.Transforms.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/RgbaVector.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Short2.cs (99%) rename src/ImageSharp/{Colors/PackedPixel => PixelFormats}/Short4.cs (99%) rename src/ImageSharp/{Colors => PixelFormats}/Vector4BlendTransforms.cs (99%) diff --git a/src/ImageSharp.Drawing/Brushes/Brushes.cs b/src/ImageSharp.Drawing/Brushes/Brushes.cs index d7b10c32af..8998c60f6e 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 d56e9e6eb4..4b2f6c0261 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 a19c55169a..e16f220288 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 84004a48d4..6a3ff1d9d3 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 e7ae27b60d..3e2da040fd 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 8884d1e02b..f00862fe78 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 4f3240247c..ad37f4d289 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 0116a13ae2..5dd6dad76d 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 3041d0edf9..bfe5c01e63 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 aa1b5cb828..7c192b2d3c 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 7c65d782a0..8a3ad50e7c 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 4d9b6adb36..634a2b70de 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 7f4fb3392a..6a4f49337c 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 64f69c4db6..09d3dbb028 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 fda5c2c263..f29c37a67f 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 af96ef50e8..c4ea8c3785 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 c0c49a77a8..e8c463638f 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 f25c153368..176539663c 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 5f62759ce0..4b99e60c02 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 5514217ffd..0fefc6cab4 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 b4d0b14cbb..f579c4ad02 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 dfc56c5d29..3360cff13c 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 b20cb89714..07ff4c69c5 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 573a126de2..31a609c8e0 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 c3a5309644..a3cc3cbdf1 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 532774f22b..5c91df2261 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 096262f449..5eb78dc444 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 05af44ca3d..f49d03cbca 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 edee5bb196..65a8a61319 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 7e9671cac1..ac18890685 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 9bb452f192..e2a9ef0248 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 32e44bce9e..62e366d2ae 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 d0ad0cc1dc..ca2dc99824 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 88830f0948..af1e6fa895 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 93486e2bb7..876d17aca0 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 e498bd7925..b1f72033d3 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 dda211a2cf..c1e5cba5a0 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 6b73d82f9b..9c6c9bf60f 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 1d6e83142e..4ca9f018c6 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 220234537a..de706c3506 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 1b9aa4777d..2b3d79afe9 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 f483c0827e..06696af9ea 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 d9e30e6544..31f3f32ae7 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 6583fb7242..cf0ac5c297 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 8bb4465350..0ec367d246 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 af78c8f863..5d0ecde6ba 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 f7a13984a0..f49e7e62d2 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 0762f61a7a..3f7cf49885 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 ce0ae1d97c..917f573182 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 94f045efae..9090e9a8cd 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 9f15bf0b28..a9aac5efa7 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 deca6cf2cf..dc2bc0e972 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 634b3a7841..617edde8eb 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 14d657c326..aba24f9997 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 4ba06efe8c..88aaccf6a4 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 1ee2d152a9..93d0bcaf18 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 005ec1ee2e..b5cadd834e 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 dec0dc411f..82f32323e8 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 523086ded5..d64203f6ce 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 2f71108a73..4fd25df13e 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 222fb6ed69..a28511c173 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 e52d436259..420af6b742 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 97593a0a3c..56d025504d 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 ccc6b91bb3..186c1e5282 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 dd467462b5..152fd2c64c 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 e29b5474bb..eb083c35d9 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 73918c060d..afb8e07007 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 277a3397eb..44f242b3f8 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 8dd9168f49..3a34147e2c 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 d64978385c..58cfa6a70b 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 a74916f2fd..e7b6bf30ef 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 e17902b5a8..e30f9791e1 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 5fcb2fa21b..3d92cd66bf 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 5e060ab6ba..b0e4762805 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 b2f39aae6e..540eb60168 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 b21307aba5..8f4c9138b6 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 8fb1fac4e9..a34c6b7b3c 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 2562246a9b..3d33e62630 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 d95e523371..08d25709b3 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 cf442cd6ce..c4fa9afa29 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 b55b88f602..7bad03cc80 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 e85177f59e..e502950d06 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 405cb48b4c..c9577ac15f 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 88fb042265..f49943b539 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 f3f9546fd3..3c67638869 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 936fc16b3a..3dd187768e 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 fd577ed221..7b9f745471 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 89c0b9c5cf..f65c020431 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 9a340544cf..a7b464b1a1 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 64255a53b5..3cad9e9571 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 2975d4ad90..f99b558162 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 1346a54efc..ea188e7c57 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 7989804cfb..8ae1cd4304 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 d58e48ffd1..9a3d266c13 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 11ec5eaf4b..884f8331b7 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 3021cb39ec..4b21130c0d 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 3dba721aa8..236d3a889e 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 c3e70b957c..8f151b41d6 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 4c785a8636..c9a27382aa 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 a19b513230..740795adc6 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 d06ab6ba07..85feea5822 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 a5fa796e1d..ef844253b7 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 0450fb8fba..ec283e6f2a 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 08f2eafb06..43fe81e953 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 ee87dd00f7..0b55dcbf91 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 56be64a86c..779b26a7af 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 a1f9b8d847..f7fe36cea1 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 46c24be6f9..f0fba66e5d 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 74229a914f..6701aab03f 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 16d73f7857..29ef5675e7 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 f8486f7f29..b0134d9b69 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 65a5e7a5f6..f014dbb8da 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 e35de0ad54..42b37bebd8 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 0e5029920e..f896eb69be 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 28eb9fa0c2..3ba5f61333 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 51c130a6c3..86638b8147 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 f04fe25601..18759bce03 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 becc4d072a..a5f3e087ca 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 e26048fc43..353412dd16 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 b0fe0faf04..61d24d191f 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 a2408dcc8a..03b3447218 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 03fd25deda..df5b231f34 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 167a1e786f..0721718ffd 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 e1a559c326..b5b4287df6 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 a7e2e0e919..17e1c7db53 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 a704acc302..f50616aa30 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 eb58fe33fe..617883d6aa 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 767c72eea0..76977455a4 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 784d52cce0..d012d6fe2b 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 10888da446..8700b63e88 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 5e6a20523d..8dbc555307 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 2fca3f1c2e..13a71a71ef 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 1e486ce308..3299add7f7 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 798a2ab3f6..194800ec72 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 faca73fc6b..c41f304b4e 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 96c82c2595..d60ec7165a 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 6912d4885f..46c134ee20 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 6ffeaa63da..3aa1d0b513 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 3472ceadbe..72abec6df9 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 196bda8372..2ed99ea260 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 f38953e38b..a54bde675b 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 e1107258fc..cb189338e7 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 585db73461..6b7477488a 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 99a90455f9..8f226d08e2 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 3bb1124cee..113d8289e7 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 62e6aeda70..d4528b55ba 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 a57f30c966..eeffff0925 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 562012f971..1be15ad650 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 424200fdde..f805dd07a0 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 f187cfcff6..566449b275 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 0fd73a84a0..af2d9f760a 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 08f6532718..c4d71d9afe 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 6676d89ba1..d37d119a41 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 3bad624baf..a91bd19467 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 246a574816..d543c4edca 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 a797168597..ea73d0c662 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 c8cc1a962f..4b5129a8bf 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 618c6deae2..14eea08126 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 de87ede0ca..39cb715bde 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 dd2a6067ca..2b402197bc 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 5d8098c623..5d228afa79 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 7f5d4465a1..b38093d634 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 add3e266b3..65de8a66d2 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 8e7956e5db..5f71e357b7 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 e5fd0318c1..8995663a3b 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 ca57f6633c..0c29c65a10 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 fe6b07c03f..18514236f7 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 2071fc7bbb..70b9979972 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 d625b641d1..ccc3c00608 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 cd8947d058..3adfb83114 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 8d9ef17d07..89be3acad5 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 26a531d0cc..6524423880 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 8ca06b3597..ac96c40ae6 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 ca114b10ac..9b95cb1a37 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 d3b11d781a..a0c1400286 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 855820f183..457854a314 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 43a0942b82..a4d1d54094 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 8fbf2fe0b8..e7670dd1d2 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 39d11a4851..c7c126794d 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 56d5ac01d7..d72816a76d 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 f1f504f26e..d882bdb169 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 61a8858b70..39f64fb5a3 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 2c39297127..c65cb5bd76 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 aa9b4b9f22..57ab4dce62 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 24faf20d06..d1515dee8e 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 efbdc7ffa5..bab9ff6222 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 f6ab60fd38..4afca0f017 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 41e3d16f41..a583d3c0d0 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 245df5afdf..1c2a6a18f9 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 c0f025630f..87de922a1d 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 353763843c..34d0990335 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 48b8a64b20..a601065461 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 368986b5dd..21973de3e4 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 5647a64536..f9f1585ea9 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 c6abd250be..8308c57e2b 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 9eaa99c717..a0348970e7 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 3ef56b7458..73d956907f 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 006ae8e603..7a57daa4eb 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 223da64ac6..0493782560 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 9be0cfde2c..31e813564b 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 1b96e098e3..b67ef5bf1e 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 67259477c1..571c40939e 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 86dc8bb156..2faf779053 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 a8cd71003d..3135551f8a 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 bd7ca3f604..e2f77d812e 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 9601cc7bbd..23166fd3ab 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 7d0afce263..fc5d29b06a 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 e5b6f12bf7..40ea6a94e5 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 5634c32992..de736092da 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 59c1209f94..073e8136da 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 59d0211a13..aaafd396f2 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 1cc79f888c..41f2e5616b 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 1e7d7e24f9..c876882662 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 3aebe23040..42851e205d 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 82c4b16c3a..543b982976 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 09fcb35346..b335a3c769 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 2f59438e90..3965903594 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 b74660efc1..0c9cfbc8e0 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 566ddf6b58..f3bf9b56d6 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 2296e589cb..d57d297fc8 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 1c588b842b..b5e5ccb25e 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 44be039f45..a235092787 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 9271280659..c8b2c7df60 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 1cf620bf92..02447062ef 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 16ab64f3cb..482481c710 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 2f3f61cce6..65c4a235d5 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 00b0b503cb..2a370bc002 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 b3a23147e9..1234a99460 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 ad7e2a9cf9..fe201549bc 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 75e0f247ce..f7406d0f61 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 efc7c130f0..a641baafe5 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 10c5584aaa..d0bd9f208f 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 3561661b62..2bd3f4a6a9 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 8f7255e80d..a0f8b21d85 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 dfcc6db0ac..ac10826971 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 161923178c..7b21dbdc61 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 bc23308481..580120abd7 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 99640fe585..97deb72c57 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 1e7745de14..aade8a8ded 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 1d18498c8d..b27ad5fcc3 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 2bf2c0fef5..6158e5aac8 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 31cd7c2323..21927c9154 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 a51dcc45aa..638a56bf31 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 19aefd06b5..b498c93acc 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 d2c5cf8454..eac0644d9a 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 09a150ab25..4b45d0ab48 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 1f80aa7d51..f2113852f3 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 18d6d6e710..efec4ea38c 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 5fbb42b2a3..563b6be3c4 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 4bfdc883ff..da63025c43 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 7a6f2bdf45..8d5e973b13 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 135490f40e..492817015a 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 3b4db9cc58..e670944f56 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 14bd38063a..5ec7c21bbf 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 e130d7399d..25a61453b2 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 094b440eea..3bc59df64a 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 077c011bbf..e673b28f1d 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 9c7a767384..eb3a5de86a 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 0588c69ed7..674823d3a8 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 130719ed7a..493bab347f 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 7ec9925a22..9661a41bba 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 cfcc107385..4a3c8e3058 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 0d8b85729d..bded40f32a 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 0671ee00a5..87bda30bed 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 7c32c344dc..008df90911 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 61ef168057..221cf7f29a 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 75486cb662..07be85b859 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 995e2ff1f5..bd90a460df 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 a6d978d80c..7ebc6b14f3 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 e55e78739b..a639a70cf7 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 6145f9c015..2935c43a05 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 3204a0a2a1..4657db9886 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 b538110731..d961a59946 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 81b31a9c36..554c5a32ed 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 ef6d321eca..d3236ae001 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 3b9411fe31..0886aa15ae 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 864e96099d..1de7e21441 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 3bd25050a2..d76dcf023e 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 6618c3fb74..bce493a69d 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 d3c34ce8f1..1dbc93b9b4 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 453f689f2e..dc6985dd34 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 60f310bbda..1bcc72c43b 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 5bc5e780c0..d5f7c2ea3f 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 dfe1324852..5150925b4f 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 117a5354ff..f242faf12c 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 b70df9c177..ae4dfc1e9a 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 1e3879a938..46ade9f9a6 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 bcec995736..505074a6aa 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 9f2a6f8c28..902bedb5e5 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 b48ffd7e90..a6c4b4545d 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 37b3679313..7d0a8377d3 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 f7490473dd..6a832859aa 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 e4f3482038..eccfc13af3 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 4fee996e65..ad10488459 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 f4b3c31ef1..2b717a0b79 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 f5c627d924..917bb895c5 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 1519678acb..89794aeaf8 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 3c4edb7b0d..318df5ead3 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 2791c25b11..4a0950788d 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 6e82e628ce..c4d758bd6c 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 e7512cb2d8..4252a60b5e 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 1b7bbe4e7e..4217d52b06 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 8739d556d7..30e7a63b50 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 c2c903e9ee..65d55da554 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 643e706170..9d6f46b72e 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 fb30e7fe4a..96d38fc401 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 43a19040a4..6476c4ecf9 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 2a7ea352b3..5408d5362b 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 2f28896b3f..de05e83a9f 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 0f4025ee4b..7d176c1e3e 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 f47123ef77..29623e1b59 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");