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