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