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
source
IImageProcessingContextThe current image processing context.
Returns
Sepia(IImageProcessingContext, Rectangle)
Applies sepia toning to the image.
public static IImageProcessingContext Sepia(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.
Returns
Sepia(IImageProcessingContext, float)
Applies sepia toning to the image using the given amount.
public static IImageProcessingContext Sepia(this IImageProcessingContext source, float amount)
Parameters
source
IImageProcessingContextThe current image processing context.
amount
floatThe 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
source
IImageProcessingContextThe current image processing context.
amount
floatThe proportion of the conversion. Must be between 0 and 1.
rectangle
RectangleThe Rectangle structure that specifies the portion of the image object to alter.