Class InvertExtensions
Defines extensions that allow the inversion of colors of an Image using Mutate/Clone.
Inherited Members
Namespace: SixLabors.ImageSharp.Processing
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class InvertExtensionsMethods
| Improve this Doc View SourceInvert(IImageProcessingContext)
Inverts the colors of the image.
Declaration
public static IImageProcessingContext Invert(this IImageProcessingContext source)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image this method extends. | 
Returns
| Type | Description | 
|---|---|
| IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. | 
Invert(IImageProcessingContext, Rectangle)
Inverts the colors of the image.
Declaration
public static IImageProcessingContext Invert(this IImageProcessingContext source, Rectangle rectangle)Parameters
| Type | Name | Description | 
|---|---|---|
| IImageProcessingContext | source | The image this method extends. | 
| 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. |