Browse Source

Changed PixelAccessor to use IPackedPixel<TPacked>.

af/merge-core
dirk 10 years ago
parent
commit
5e6f379562
  1. 2
      src/ImageSharp/Common/Helpers/ImageMaths.cs
  2. 2
      src/ImageSharp/Filters/Processors/AlphaProcessor.cs
  3. 2
      src/ImageSharp/Filters/Processors/BackgroundColorProcessor.cs
  4. 2
      src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs
  5. 2
      src/ImageSharp/Filters/Processors/BlendProcessor.cs
  6. 2
      src/ImageSharp/Filters/Processors/BrightnessProcessor.cs
  7. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/BlackWhiteProcessor.cs
  8. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs
  9. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs
  10. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs
  11. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs
  12. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs
  13. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs
  14. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs
  15. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs
  16. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/ColorMatrixFilter.cs
  17. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/GrayscaleBt601Processor.cs
  18. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/GrayscaleBt709Processor.cs
  19. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/HueProcessor.cs
  20. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/IColorMatrixFilter.cs
  21. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/KodachromeProcessor.cs
  22. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/LomographProcessor.cs
  23. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/PolaroidProcessor.cs
  24. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/SaturationProcessor.cs
  25. 2
      src/ImageSharp/Filters/Processors/ColorMatrix/SepiaProcessor.cs
  26. 2
      src/ImageSharp/Filters/Processors/ContrastProcessor.cs
  27. 2
      src/ImageSharp/Filters/Processors/GlowProcessor.cs
  28. 2
      src/ImageSharp/Filters/Processors/IImageFilter.cs
  29. 2
      src/ImageSharp/Filters/Processors/ImageFilter.cs
  30. 2
      src/ImageSharp/Filters/Processors/InvertProcessor.cs
  31. 2
      src/ImageSharp/Filters/Processors/VignetteProcessor.cs
  32. 8
      src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
  33. 8
      src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
  34. 4
      src/ImageSharp/Formats/Gif/GifEncoderCore.cs
  35. 8
      src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs
  36. 6
      src/ImageSharp/Formats/Png/PngDecoderCore.cs
  37. 4
      src/ImageSharp/Formats/Png/PngEncoderCore.cs
  38. 2
      src/ImageSharp/Image/IImageBase.cs
  39. 2
      src/ImageSharp/Image/IImageFrame.cs
  40. 2
      src/ImageSharp/Image/ImageBase.cs
  41. 2
      src/ImageSharp/Image/ImageFrame.cs
  42. 2
      src/ImageSharp/Image/PixelAccessor.cs
  43. 2
      src/ImageSharp/ImageProcessor.cs
  44. 12
      src/ImageSharp/Samplers/Options/ResizeHelper.cs
  45. 2
      src/ImageSharp/Samplers/Processors/Convolution/Convolution2DFilter.cs
  46. 2
      src/ImageSharp/Samplers/Processors/Convolution/ConvolutionFilter.cs
  47. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs
  48. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetectorFilter.cs
  49. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/IEdgeDetectorFilter.cs
  50. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs
  51. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs
  52. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs
  53. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs
  54. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/PrewittProcessor.cs
  55. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs
  56. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/ScharrProcessor.cs
  57. 2
      src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/SobelProcessor.cs
  58. 2
      src/ImageSharp/Samplers/Processors/CropProcessor.cs
  59. 2
      src/ImageSharp/Samplers/Processors/IImageSampler.cs
  60. 2
      src/ImageSharp/Samplers/Processors/ImageSampler.cs
  61. 2
      src/ImageSharp/Samplers/Processors/Matrix3x2Processor.cs
  62. 2
      src/ImageSharp/Samplers/Processors/OilPaintingProcessor.cs
  63. 2
      src/ImageSharp/Samplers/Processors/PixelateProcessor.cs
  64. 2
      src/ImageSharp/Samplers/Processors/ResamplingWeightedProcessor.cs
  65. 2
      src/ImageSharp/Samplers/Processors/SkewProcessor.cs

2
src/ImageSharp/Common/Helpers/ImageMaths.cs

@ -165,7 +165,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
public static Rectangle GetFilteredBoundingRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> bitmap, float componentValue, RgbaComponent channel = RgbaComponent.B)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
const float Epsilon = .00001f;

2
src/ImageSharp/Filters/Processors/AlphaProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class AlphaProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/BackgroundColorProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class BackgroundColorProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/Binarization/BinaryThresholdProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class BinaryThresholdProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/BlendProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class BlendProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/BrightnessProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class BrightnessProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/ColorMatrix/BlackWhiteProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class BlackWhiteProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/AchromatomalyProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class AchromatomalyProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/AchromatopsiaProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class AchromatopsiaProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/DeuteranomalyProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class DeuteranomalyProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/DeuteranopiaProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class DeuteranopiaProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/ProtanomalyProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class ProtanomalyProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/ProtanopiaProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class ProtanopiaProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/TritanomalyProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class TritanomalyProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorBlindness/TritanopiaProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class TritanopiaProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/ColorMatrixFilter.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class ColorMatrixFilter<TColor, TPacked> : ImageFilter<TColor, TPacked>, IColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/GrayscaleBt601Processor.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class GrayscaleBt601Processor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/GrayscaleBt709Processor.cs

@ -12,7 +12,7 @@ namespace ImageSharp.Processors
/// ITU-R Recommendation BT.709 <see href="https://en.wikipedia.org/wiki/Rec._709#Luma_coefficients"/>.
/// </summary>
public class GrayscaleBt709Processor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/HueProcessor.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class HueProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/ColorMatrix/IColorMatrixFilter.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IColorMatrixFilter<TColor, TPacked> : IImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/ColorMatrix/KodachromeProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class KodachromeProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/LomographProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class LomographProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/PolaroidProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class PolaroidProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ColorMatrix/SaturationProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class SaturationProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/ColorMatrix/SepiaProcessor.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class SepiaProcessor<TColor, TPacked> : ColorMatrixFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/ContrastProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>long, float.</example></typeparam>
public class ContrastProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/GlowProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class GlowProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/IImageFilter.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IImageFilter<TColor, TPacked> : IImageProcessor
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Filters/Processors/ImageFilter.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class ImageFilter<TColor, TPacked> : ImageProcessor<TColor, TPacked>, IImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/InvertProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class InvertProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Filters/Processors/VignetteProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class VignetteProcessor<TColor, TPacked> : ImageFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

8
src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs

@ -196,7 +196,7 @@ namespace ImageSharp.Formats
/// <param name="bits">The number of bits per pixel.</param>
/// <param name="inverted">Whether the bitmap is inverted.</param>
private void ReadRgbPalette<TColor, TPacked>(TColor[] imageData, byte[] colors, int width, int height, int bits, bool inverted)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// Pixels per byte (bits per pixel)
@ -259,7 +259,7 @@ namespace ImageSharp.Formats
/// <param name="height">The height of the bitmap.</param>
/// <param name="inverted">Whether the bitmap is inverted.</param>
private void ReadRgb16<TColor, TPacked>(TColor[] imageData, int width, int height, bool inverted)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// We divide here as we will store the colors in our floating point format.
@ -310,7 +310,7 @@ namespace ImageSharp.Formats
/// <param name="height">The height of the bitmap.</param>
/// <param name="inverted">Whether the bitmap is inverted.</param>
private void ReadRgb24<TColor, TPacked>(TColor[] imageData, int width, int height, bool inverted)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int alignment;
@ -350,7 +350,7 @@ namespace ImageSharp.Formats
/// <param name="height">The height of the bitmap.</param>
/// <param name="inverted">Whether the bitmap is inverted.</param>
private void ReadRgb32<TColor, TPacked>(TColor[] imageData, int width, int height, bool inverted)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int alignment;

8
src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs

@ -33,7 +33,7 @@ namespace ImageSharp.Formats
/// <param name="stream">The <see cref="Stream"/> to encode the image data to.</param>
/// <param name="bitsPerPixel">The <see cref="BmpBitsPerPixel"/></param>
public void Encode<TColor, TPacked>(ImageBase<TColor, TPacked> image, Stream stream, BmpBitsPerPixel bitsPerPixel)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
Guard.NotNull(image, nameof(image));
@ -126,7 +126,7 @@ namespace ImageSharp.Formats
/// The <see cref="ImageBase{TColor, TPacked}"/> containing pixel data.
/// </param>
private void WriteImage<TColor, TPacked>(EndianBinaryWriter writer, ImageBase<TColor, TPacked> image)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
using (PixelAccessor<TColor, TPacked> pixels = image.Lock())
@ -152,7 +152,7 @@ namespace ImageSharp.Formats
/// <param name="writer">The <see cref="EndianBinaryWriter"/> containing the stream to write to.</param>
/// <param name="pixels">The <see cref="PixelAccessor{TColor,TPacked}"/> containing pixel data.</param>
private void Write32Bit<TColor, TPacked>(EndianBinaryWriter writer, PixelAccessor<TColor, TPacked> pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
for (int y = pixels.Height - 1; y >= 0; y--)
@ -180,7 +180,7 @@ namespace ImageSharp.Formats
/// <param name="writer">The <see cref="EndianBinaryWriter"/> containing the stream to write to.</param>
/// <param name="pixels">The <see cref="PixelAccessor{TColor,TPacked}"/> containing pixel data.</param>
private void Write24Bit<TColor, TPacked>(EndianBinaryWriter writer, PixelAccessor<TColor, TPacked> pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
for (int y = pixels.Height - 1; y >= 0; y--)

4
src/ImageSharp/Formats/Gif/GifEncoderCore.cs

@ -227,7 +227,7 @@ namespace ImageSharp.Formats
/// <param name="writer">The stream to write to.</param>
/// <param name="transparencyIndex">The index of the color in the color palette to make transparent.</param>
private void WriteGraphicalControlExtension<TColor, TPacked>(ImageBase<TColor, TPacked> image, EndianBinaryWriter writer, int transparencyIndex)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// TODO: Check transparency logic.
@ -275,7 +275,7 @@ namespace ImageSharp.Formats
/// <param name="image">The <see cref="ImageBase{TColor, TPacked}"/> to be encoded.</param>
/// <param name="writer">The stream to write to.</param>
private void WriteImageDescriptor<TColor, TPacked>(ImageBase<TColor, TPacked> image, EndianBinaryWriter writer)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
writer.Write(GifConstants.ImageDescriptorLabel); // 2c

8
src/ImageSharp/Formats/Jpg/JpegEncoderCore.cs

@ -353,7 +353,7 @@ namespace ImageSharp.Formats
// toYCbCr converts the 8x8 region of m whose top-left corner is p to its
// YCbCr values.
private void ToYCbCr<TColor, TPacked>(PixelAccessor<TColor, TPacked> pixels, int x, int y, Block yBlock, Block cbBlock, Block crBlock)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int xmax = pixels.Width - 1;
@ -736,7 +736,7 @@ namespace ImageSharp.Formats
/// </summary>
/// <param name="pixels">The pixel accessor providing acces to the image pixels.</param>
private void WriteSOS<TColor, TPacked>(PixelAccessor<TColor, TPacked> pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// TODO: We should allow grayscale writing.
@ -761,7 +761,7 @@ namespace ImageSharp.Formats
/// </summary>
/// <param name="pixels">The pixel accessor providing acces to the image pixels.</param>
private void Encode444<TColor, TPacked>(PixelAccessor<TColor, TPacked> pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
Block b = new Block();
@ -787,7 +787,7 @@ namespace ImageSharp.Formats
/// </summary>
/// <param name="pixels">The pixel accessor providing acces to the image pixels.</param>
private void Encode420<TColor, TPacked>(PixelAccessor<TColor, TPacked> pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
Block b = new Block();

6
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -227,7 +227,7 @@ namespace ImageSharp.Formats
/// <param name="dataStream">The <see cref="MemoryStream"/> containing data.</param>
/// <param name="pixels"> The pixel data.</param>
private void ReadScanlines<TColor, TPacked>(MemoryStream dataStream, TColor[] pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
this.bytesPerPixel = this.CalculateBytesPerPixel();
@ -260,7 +260,7 @@ namespace ImageSharp.Formats
/// <param name="pixelData">The pixel data.</param>
/// <param name="pixels">The image pixels.</param>
private void DecodePixelData<TColor, TPacked>(byte[] pixelData, TColor[] pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
byte[] previousScanline = new byte[this.bytesPerScanline];
@ -322,7 +322,7 @@ namespace ImageSharp.Formats
/// <param name="row">The current image row.</param>
/// <param name="pixels">The image pixels</param>
private void ProcessDefilteredScanline<TColor, TPacked>(byte[] defilteredScanline, int row, TColor[] pixels)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
switch (this.PngColorType)

4
src/ImageSharp/Formats/Png/PngEncoderCore.cs

@ -248,7 +248,7 @@ namespace ImageSharp.Formats
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
/// <param name="image">The image to encode.</param>
private void CollectGrayscaleBytes<TColor, TPacked>(ImageBase<TColor, TPacked> image)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// Copy the pixels across from the image.
@ -292,7 +292,7 @@ namespace ImageSharp.Formats
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
/// <param name="image">The image to encode.</param>
private void CollectColorBytes<TColor, TPacked>(ImageBase<TColor, TPacked> image)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
// Copy the pixels across from the image.

2
src/ImageSharp/Image/IImageBase.cs

@ -11,7 +11,7 @@ namespace ImageSharp
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IImageBase<TColor, TPacked> : IImageBase
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Image/IImageFrame.cs

@ -11,7 +11,7 @@ namespace ImageSharp
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IImageFrame<TColor, TPacked> : IImageBase<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
}

2
src/ImageSharp/Image/ImageBase.cs

@ -16,7 +16,7 @@ namespace ImageSharp
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[DebuggerDisplay("Image: {Width}x{Height}")]
public abstract class ImageBase<TColor, TPacked> : IImageBase<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Image/ImageFrame.cs

@ -11,7 +11,7 @@ namespace ImageSharp
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class ImageFrame<TColor, TPacked> : ImageBase<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Image/PixelAccessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public unsafe class PixelAccessor<TColor, TPacked> : IDisposable
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/ImageProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class ImageProcessor<TColor, TPacked> : IImageProcessor
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

12
src/ImageSharp/Samplers/Options/ResizeHelper.cs

@ -25,7 +25,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
public static Rectangle CalculateTargetLocationAndBounds<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
switch (options.Mode)
@ -58,7 +58,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
private static Rectangle CalculateCropRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int width = options.Size.Width;
@ -179,7 +179,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
private static Rectangle CalculatePadRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int width = options.Size.Width;
@ -262,7 +262,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
private static Rectangle CalculateBoxPadRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int width = options.Size.Width;
@ -351,7 +351,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
private static Rectangle CalculateMaxRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int width = options.Size.Width;
@ -394,7 +394,7 @@ namespace ImageSharp
/// The <see cref="Rectangle"/>.
/// </returns>
private static Rectangle CalculateMinRectangle<TColor, TPacked>(ImageBase<TColor, TPacked> source, ResizeOptions options)
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
int width = options.Size.Width;

2
src/ImageSharp/Samplers/Processors/Convolution/Convolution2DFilter.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class Convolution2DFilter<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/ConvolutionFilter.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class ConvolutionFilter<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetector2DFilter.cs

@ -12,7 +12,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class EdgeDetector2DFilter<TColor, TPacked> : ImageSampler<TColor, TPacked>, IEdgeDetectorFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/EdgeDetectorFilter.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class EdgeDetectorFilter<TColor, TPacked> : ImageSampler<TColor, TPacked>, IEdgeDetectorFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/IEdgeDetectorFilter.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IEdgeDetectorFilter<TColor, TPacked> : IImageSampler<TColor, TPacked>, IEdgeDetectorFilter
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
}

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/KayyaliProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class KayyaliProcessor<TColor, TPacked> : EdgeDetector2DFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/Laplacian3X3Processor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class Laplacian3X3Processor<TColor, TPacked> : EdgeDetectorFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/Laplacian5X5Processor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class Laplacian5X5Processor<TColor, TPacked> : EdgeDetectorFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/LaplacianOfGaussianProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class LaplacianOfGaussianProcessor<TColor, TPacked> : EdgeDetectorFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/PrewittProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class PrewittProcessor<TColor, TPacked> : EdgeDetector2DFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/RobertsCrossProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class RobertsCrossProcessor<TColor, TPacked> : EdgeDetector2DFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/ScharrProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class ScharrProcessor<TColor, TPacked> : EdgeDetector2DFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/Convolution/EdgeDetection/SobelProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "We want to use only one instance of each array field for each generic type.")]
public class SobelProcessor<TColor, TPacked> : EdgeDetector2DFilter<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/CropProcessor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class CropProcessor<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Samplers/Processors/IImageSampler.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public interface IImageSampler<TColor, TPacked> : IImageProcessor
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/ImageSampler.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class ImageSampler<TColor, TPacked> : ImageProcessor<TColor, TPacked>, IImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <inheritdoc/>

2
src/ImageSharp/Samplers/Processors/Matrix3x2Processor.cs

@ -13,7 +13,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class Matrix3x2Processor<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/OilPaintingProcessor.cs

@ -16,7 +16,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class OilPaintingProcessor<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/PixelateProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class PixelateProcessor<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/ResamplingWeightedProcessor.cs

@ -14,7 +14,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public abstract class ResamplingWeightedProcessor<TColor, TPacked> : ImageSampler<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

2
src/ImageSharp/Samplers/Processors/SkewProcessor.cs

@ -15,7 +15,7 @@ namespace ImageSharp.Processors
/// <typeparam name="TColor">The pixel format.</typeparam>
/// <typeparam name="TPacked">The packed format. <example>uint, long, float.</example></typeparam>
public class SkewProcessor<TColor, TPacked> : Matrix3x2Processor<TColor, TPacked>
where TColor : struct, IPackedVector<TPacked>
where TColor : struct, IPackedPixel<TPacked>
where TPacked : struct
{
/// <summary>

Loading…
Cancel
Save