TransformsProvider.Rotate Method (Single)

Rotates the bitmap at arbitrary angle.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void Rotate(
	float angle
)

Parameters

angle

Type: System.Single

The angle to rotate the image at (in degrees).

Remarks

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.

You can also use Rotate class to apply this transform.

Examples

C#
using (var bitmap = new Bitmap(@"Images\in.jpg"))
{
    bitmap.Transforms.Rotate(5, RgbColor.Yellow, InterpolationMode.Medium);
    bitmap.Save(@"Images\Output\out.jpg");
}

See Also

Reference

Manual