Table of Contents

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

matrix ColorMatrix

The matrix used to apply the image filter

Properties

Matrix

Gets the ColorMatrix used to apply the image filter.

public ColorMatrix Matrix { get; }

Property Value

ColorMatrix

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

configuration Configuration

The configuration which allows altering default behaviour or extending the library.

source Image<TPixel>

The source image. Cannot be null.

sourceRectangle Rectangle

The Rectangle structure that specifies the portion of the image object to draw.

Returns

IImageProcessor<TPixel>

The IImageProcessor<TPixel>

Type Parameters

TPixel

The pixel type.