---
title: "Rotate Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Rotate.htm
product: "Graphics Mill"
---

# Rotate Class
 
Rotates an image at arbitrary angle.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class Rotate : Transform
```
 
## Remarks
  
The main parameter of this transform is [Angle](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Rotate_Angle.htm.md) to rotate the image to. If specified angle is 90, 180, or 270 degrees, a special algorithm which avoids floating-point calculations is used automatically, which yields to higher performance.
 
Another important property is [InterpolationMode](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_Rotate_InterpolationMode.htm.md) that defines an interpolation algorithm. Different algorithms produce different quality, but as usual the higher quality an algorithm produces, the slower it works.
 
## Examples
  
The following code rotates an image by 5 degrees clockwise.
 
```csharp
using (var bitmap = new Bitmap(@"Images\in.jpg"))
using (var rotate = new Rotate(5, RgbColor.Yellow, InterpolationMode.Medium))
{
    using (var result = rotate.Apply(bitmap))
    {
        result.Save(@"Images\Output\out.jpg");
    }
}
```
 
## Inheritance Hierarchy
  
- System.Object
    - [Aurigma.GraphicsMill.PipelineElement](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_PipelineElement.htm.md)
        - [Aurigma.GraphicsMill.Transforms.Transform](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_Transform.htm.md)
            - Aurigma.GraphicsMill.Transforms.Rotate
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [Rotate Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_Transforms_Rotate.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)

### Manual

- [Rotating and Flipping Images](https://www.graphicsmill.com/docs/gm/rotating-and-flipping-images.htm.md)
