diff --git a/src/ImageSharp/Processing/Extensions/PixelShaderExtensions.cs b/src/ImageSharp/Processing/Extensions/PixelShaderExtensions.cs index bad705a4d..26b6de3db 100644 --- a/src/ImageSharp/Processing/Extensions/PixelShaderExtensions.cs +++ b/src/ImageSharp/Processing/Extensions/PixelShaderExtensions.cs @@ -2,7 +2,6 @@ // Licensed under the Apache License, Version 2.0. using SixLabors.ImageSharp.Processing.Delegates; -using SixLabors.ImageSharp.Processing.Processors; using SixLabors.ImageSharp.Processing.Processors.PixelShading; using SixLabors.Primitives; @@ -20,7 +19,7 @@ namespace SixLabors.ImageSharp.Processing /// The user defined pixel shader to use to modify images. /// The to allow chaining of operations. public static IImageProcessingContext ApplyPixelShaderProcessor(this IImageProcessingContext source, PixelShader pixelShader) - => source.ApplyProcessor(new DelegatePixelShaderProcessor(pixelShader)); + => source.ApplyProcessor(new PixelShaderProcessor(pixelShader)); /// /// Applies a user defined pixel shader to the image. @@ -32,6 +31,6 @@ namespace SixLabors.ImageSharp.Processing /// /// The to allow chaining of operations. public static IImageProcessingContext BlackWhite(this IImageProcessingContext source, PixelShader pixelShader, Rectangle rectangle) - => source.ApplyProcessor(new DelegatePixelShaderProcessor(pixelShader), rectangle); + => source.ApplyProcessor(new PixelShaderProcessor(pixelShader), rectangle); } } diff --git a/src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor.cs b/src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor.cs similarity index 75% rename from src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor.cs rename to src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor.cs index b09385ff3..30ba4222e 100644 --- a/src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor.cs +++ b/src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor.cs @@ -10,15 +10,15 @@ namespace SixLabors.ImageSharp.Processing.Processors.PixelShading /// /// Applies a user defined pixel shader effect through a given delegate. /// - public sealed class DelegatePixelShaderProcessor : IImageProcessor + public sealed class PixelShaderProcessor : IImageProcessor { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// The user defined pixel shader to use to modify images. /// - public DelegatePixelShaderProcessor(PixelShader pixelShader) + public PixelShaderProcessor(PixelShader pixelShader) { this.PixelShader = pixelShader; } @@ -32,7 +32,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.PixelShading public IImageProcessor CreatePixelSpecificProcessor(Image source, Rectangle sourceRectangle) where TPixel : struct, IPixel { - return new DelegatePixelShaderProcessor(this, source, sourceRectangle); + return new PixelShaderProcessor(this, source, sourceRectangle); } } } diff --git a/src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor{TPixel}.cs similarity index 84% rename from src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor{TPixel}.cs rename to src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor{TPixel}.cs index d15614cc4..b856355ae 100644 --- a/src/ImageSharp/Processing/Processors/PixelShading/DelegatePixelShaderProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/PixelShading/PixelShaderProcessor{TPixel}.cs @@ -16,7 +16,7 @@ namespace SixLabors.ImageSharp.Processing.Processors.PixelShading /// Applies a user defined pixel shader effect through a given delegate. /// /// The pixel format. - internal class DelegatePixelShaderProcessor : ImageProcessor + internal class PixelShaderProcessor : ImageProcessor where TPixel : struct, IPixel { /// @@ -25,12 +25,12 @@ namespace SixLabors.ImageSharp.Processing.Processors.PixelShading private readonly PixelShader pixelShader; /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// The defining the processor parameters. + /// The defining the processor parameters. /// The source for the current processor instance. /// The source area to process for the current processor instance. - public DelegatePixelShaderProcessor(DelegatePixelShaderProcessor definition, Image source, Rectangle sourceRectangle) + public PixelShaderProcessor(PixelShaderProcessor definition, Image source, Rectangle sourceRectangle) : base(source, sourceRectangle) { this.pixelShader = definition.PixelShader;