Table of Contents

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 IImageProcessingContext

The current image processing context.

Returns

IImageProcessingContext

The IImageProcessingContext.

Sepia(IImageProcessingContext, Rectangle)

Applies sepia toning to the image.

public static IImageProcessingContext Sepia(this IImageProcessingContext source, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

rectangle Rectangle

The Rectangle structure that specifies the portion of the image object to alter.

Returns

IImageProcessingContext

The IImageProcessingContext.

Sepia(IImageProcessingContext, float)

Applies sepia toning to the image using the given amount.

public static IImageProcessingContext Sepia(this IImageProcessingContext source, float amount)

Parameters

source IImageProcessingContext

The current image processing context.

amount float

The proportion of the conversion. Must be between 0 and 1.

Returns

IImageProcessingContext

The IImageProcessingContext.

Sepia(IImageProcessingContext, float, Rectangle)

Applies sepia toning to the image.

public static IImageProcessingContext Sepia(this IImageProcessingContext source, float amount, Rectangle rectangle)

Parameters

source IImageProcessingContext

The current image processing context.

amount float

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

IImageProcessingContext

The IImageProcessingContext.