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
| Improve this Doc View SourceSepia(IImageProcessingContext)
Applies sepia toning to the image.
Declaration
public static IImageProcessingContext Sepia(this IImageProcessingContext source)
Parameters
Type | Name | Description |
---|---|---|
IImageProcessingContext | source | The image this method extends. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
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 image this method extends. |
Rectangle | rectangle | The Rectangle structure that specifies the portion of the image object to alter. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Sepia(IImageProcessingContext, Single)
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 image this method extends. |
Single | amount | The proportion of the conversion. Must be between 0 and 1. |
Returns
Type | Description |
---|---|
IImageProcessingContext | The IImageProcessingContext to allow chaining of operations. |
Sepia(IImageProcessingContext, Single, 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 image this method extends. |
Single | 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 | The IImageProcessingContext to allow chaining of operations. |