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
sourceIImageProcessingContextThe current image processing context.
Returns
Invert(IImageProcessingContext, Rectangle)
Inverts the colors of the image.
public static IImageProcessingContext Invert(this IImageProcessingContext source, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe Rectangle structure that specifies the portion of the image object to alter.