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
IImageProcessingContextThe current image processing context.
rotateMode
RotateModeThe RotateMode to perform the rotation.
Returns
Rotate(IImageProcessingContext, float)
Rotates an image by the given angle in degrees.
public static IImageProcessingContext Rotate(this IImageProcessingContext source, float degrees)
Parameters
source
IImageProcessingContextThe current image processing context.
degrees
floatThe angle in degrees to perform the rotation.
Returns
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
IImageProcessingContextThe current image processing context.
degrees
floatThe angle in degrees to perform the rotation.
sampler
IResamplerThe IResampler to perform the resampling.