Table of Contents

Class FilterExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the application of composable filters to an Image using Mutate/Clone.

public static class FilterExtensions
Inheritance
FilterExtensions
Inherited Members

Methods

Filter(IImageProcessingContext, ColorMatrix)

Filters an image by the given color matrix

public static IImageProcessingContext Filter(this IImageProcessingContext source, ColorMatrix matrix)

Parameters

source IImageProcessingContext

The current image processing context.

matrix ColorMatrix

The filter color matrix

Returns

IImageProcessingContext

The IImageProcessingContext.

Filter(IImageProcessingContext, ColorMatrix, Rectangle)

Filters an image by the given color matrix

public static IImageProcessingContext Filter(this IImageProcessingContext source, ColorMatrix matrix, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

matrix ColorMatrix

The filter color matrix

rectangle Rectangle

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

Returns

IImageProcessingContext

The IImageProcessingContext.