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
| Improve this Doc 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 image this method extends. |
ColorMatrix | matrix | The filter color matrix |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
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 | The IImageProcessingContext to allow chaining of operations. |