Class FilterProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Filters
- Assembly
- SixLabors.ImageSharp.dll
Defines a free-form color filter by a ColorMatrix.
public class FilterProcessor : IImageProcessor
- Inheritance
-
FilterProcessor
- Implements
- Derived
- Inherited Members
Constructors
FilterProcessor(ColorMatrix)
Initializes a new instance of the FilterProcessor class.
public FilterProcessor(ColorMatrix matrix)
Parameters
matrixColorMatrixThe matrix used to apply the image filter
Properties
Matrix
Gets the ColorMatrix used to apply the image filter.
public ColorMatrix Matrix { get; }
Property Value
Methods
CreatePixelSpecificProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific IImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
public virtual IImageProcessor<TPixel> CreatePixelSpecificProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configurationConfigurationThe configuration which allows altering default behaviour or extending the library.
sourceImage<TPixel>The source image. Cannot be null.
sourceRectangleRectangleThe Rectangle structure that specifies the portion of the image object to draw.
Returns
- IImageProcessor<TPixel>
Type Parameters
TPixelThe pixel type.