Class SepiaExtensions
- Namespace
- SixLabors.ImageSharp.Processing
- Assembly
- SixLabors.ImageSharp.dll
Defines extensions that allow the application of sepia toning on an Image using Mutate/Clone.
public static class SepiaExtensions
- Inheritance
-
SepiaExtensions
- Inherited Members
Methods
Sepia(IImageProcessingContext)
Applies sepia toning to the image.
public static IImageProcessingContext Sepia(this IImageProcessingContext source)
Parameters
sourceIImageProcessingContextThe current image processing context.
Returns
Sepia(IImageProcessingContext, Rectangle)
Applies sepia toning to the image.
public static IImageProcessingContext Sepia(this IImageProcessingContext source, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
rectangleRectangleThe Rectangle structure that specifies the portion of the image object to alter.
Returns
Sepia(IImageProcessingContext, float)
Applies sepia toning to the image using the given amount.
public static IImageProcessingContext Sepia(this IImageProcessingContext source, float amount)
Parameters
sourceIImageProcessingContextThe current image processing context.
amountfloatThe proportion of the conversion. Must be between 0 and 1.
Returns
Sepia(IImageProcessingContext, float, Rectangle)
Applies sepia toning to the image.
public static IImageProcessingContext Sepia(this IImageProcessingContext source, float amount, Rectangle rectangle)
Parameters
sourceIImageProcessingContextThe current image processing context.
amountfloatThe proportion of the conversion. Must be between 0 and 1.
rectangleRectangleThe Rectangle structure that specifies the portion of the image object to alter.