Class RotateProcessor
- Namespace
- SixLabors.ImageSharp.Processing.Processors.Transforms
- Assembly
- SixLabors.ImageSharp.dll
Defines a rotation applicable to an Image.
public sealed class RotateProcessor : AffineTransformProcessor, ICloningImageProcessor, IImageProcessor
- Inheritance
-
RotateProcessor
- Implements
- Inherited Members
Constructors
RotateProcessor(float, IResampler, Size)
Initializes a new instance of the RotateProcessor class.
public RotateProcessor(float degrees, IResampler sampler, Size sourceSize)
Parameters
degreesfloatThe angle of rotation in degrees.
samplerIResamplerThe sampler to perform the rotating operation.
sourceSizeSizeThe source image size
RotateProcessor(float, Size)
Initializes a new instance of the RotateProcessor class.
public RotateProcessor(float degrees, Size sourceSize)
Parameters
Properties
Degrees
Gets the angle of rotation in degrees.
public float Degrees { get; }
Property Value
Methods
CreatePixelSpecificCloningProcessor<TPixel>(Configuration, Image<TPixel>, Rectangle)
Creates a pixel specific ICloningImageProcessor<TPixel> that is capable of executing the processing algorithm on an Image<TPixel>.
public override ICloningImageProcessor<TPixel> CreatePixelSpecificCloningProcessor<TPixel>(Configuration configuration, Image<TPixel> source, Rectangle sourceRectangle) where TPixel : unmanaged, IPixel<TPixel>
Parameters
configurationConfigurationThe configuration which allows altering default behaviour or extending the library.
sourceImage<TPixel>The source image. Cannot be null.
sourceRectangleRectangleThe Rectangle structure that specifies the portion of the image object to draw.
Returns
- ICloningImageProcessor<TPixel>
Type Parameters
TPixelThe pixel type.