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