---
title: "TransformsProvider..::.Rotate Method (Single, Color, InterpolationMode)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_Rotate_3_4ae95bb1.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# TransformsProvider.Rotate Method (Single, Color, InterpolationMode)
 
Rotates an image at arbitrary angle.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Rotate ( _angle As Single, _backgroundColor As Color, _interpolationMode As InterpolationMode _
)
```
 
```csharp
public void Rotate(float angle,Color backgroundColor,InterpolationMode interpolationMode
)
```
 
### Parameters
 
 - angle
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Angle to rotate image at (in degrees).

 - backgroundColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
Value specifying background color for the rotated image.

 - interpolationMode
     - Type: [Aurigma.GraphicsMill.Transforms.InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md)
 [InterpolationMode](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_InterpolationMode.htm.md) value specifying interpolation algorithm used during rotation.
 
## Remarks
 You can also use [Rotate](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_Rotate.htm.md) class to apply this transform. Besides, if you know that you will always rotate the image at 90, 180, or 270 degrees, you can use special optimized [RotateAndFlip(RotateFlipType)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_TransformsProvider_RotateAndFlip_1_71d6aa36.htm.md) method (or appropriate [RotateAndFlip](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_RotateAndFlip.htm.md) transform).
 
## Examples
  
```
'Rotate at 5 degrees with medium quality
bitmap.Transforms.Rotate(5, Aurigma.GraphicsMill.RgbColor.Yellow, _
 Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality)
```
 
```csharp
//Rotate at 5 degrees with medium quality
bitmap.Transforms.Rotate(5, Aurigma.GraphicsMill.RgbColor.Yellow, 
    Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality);
```
   
## See Also

### Reference

- [TransformsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_TransformsProvider.htm.md)
- [Rotate Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_TransformsProvider_Rotate.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
