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