Table of Contents

Class RotateExtensions

Namespace
SixLabors.ImageSharp.Processing
Assembly
SixLabors.ImageSharp.dll

Defines extensions that allow the application of rotate operations on an Image using Mutate/Clone.

public static class RotateExtensions
Inheritance
RotateExtensions
Inherited Members

Methods

Rotate(IImageProcessingContext, RotateMode)

Rotates and flips an image by the given instructions.

public static IImageProcessingContext Rotate(this IImageProcessingContext source, RotateMode rotateMode)

Parameters

source IImageProcessingContext

The current image processing context.

rotateMode RotateMode

The RotateMode to perform the rotation.

Returns

IImageProcessingContext

The IImageProcessingContext.

Rotate(IImageProcessingContext, float)

Rotates an image by the given angle in degrees.

public static IImageProcessingContext Rotate(this IImageProcessingContext source, float degrees)

Parameters

source IImageProcessingContext

The current image processing context.

degrees float

The angle in degrees to perform the rotation.

Returns

IImageProcessingContext

The IImageProcessingContext.

Rotate(IImageProcessingContext, float, IResampler)

Rotates an image by the given angle in degrees using the specified sampling algorithm.

public static IImageProcessingContext Rotate(this IImageProcessingContext source, float degrees, IResampler sampler)

Parameters

source IImageProcessingContext

The current image processing context.

degrees float

The angle in degrees to perform the rotation.

sampler IResampler

The IResampler to perform the resampling.

Returns

IImageProcessingContext

The IImageProcessingContext.