Class FilterExtensions
Defines extensions that allow the application of composable filters to an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class FilterExtensions
Methods
| Edit this page View SourceFilter(IImageProcessingContext, ColorMatrix)
Filters an image by the given color matrix
Declaration
public static IImageProcessingContext Filter(this IImageProcessingContext source, ColorMatrix matrix)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
ColorMatrix | matrix | The filter color matrix |
Returns
Type | Description |
---|---|
IImageProcessingContext |
Filter(IImageProcessingContext, ColorMatrix, Rectangle)
Filters an image by the given color matrix
Declaration
public static IImageProcessingContext Filter(this IImageProcessingContext source, ColorMatrix matrix, Rectangle rectangle)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The current image processing context. |
ColorMatrix | matrix | The filter color matrix |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext |