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
sourceIImageProcessingContextThe current image processing context.
rotateModeRotateModeThe 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
sourceIImageProcessingContextThe current image processing context.
degreesfloatThe 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
sourceIImageProcessingContextThe current image processing context.
degreesfloatThe angle in degrees to perform the rotation.
samplerIResamplerThe IResampler to perform the resampling.