Table of Contents

Class InvertExtensions

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

Defines extensions that allow the inversion of colors of an Image using Mutate/Clone.

public static class InvertExtensions
Inheritance
InvertExtensions
Inherited Members

Methods

Invert(IImageProcessingContext)

Inverts the colors of the image.

public static IImageProcessingContext Invert(this IImageProcessingContext source)

Parameters

source IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

Invert(IImageProcessingContext, Rectangle)

Inverts the colors of the image.

public static IImageProcessingContext Invert(this IImageProcessingContext source, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

rectangle Rectangle

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

Returns

IImageProcessingContext

The IImageProcessingContext.