This documentation is for the old version. Go to the latest Graphics Mill docs

TransformsProvider.Rotate Method (Single, Color, InterpolationMode)

Rotates an image at arbitrary angle.

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

Syntax

Visual Basic
Public Sub Rotate ( _
	angle As Single, _
	backgroundColor As Color, _
	interpolationMode As InterpolationMode _
)
C#
public void Rotate(
	float angle,
	Color backgroundColor,
	InterpolationMode interpolationMode
)

Parameters

angle

Type: System.Single

Angle to rotate image at (in degrees).
backgroundColor

Type: Aurigma.GraphicsMill.Color

Value specifying background color for the rotated image.
interpolationMode

Type: Aurigma.GraphicsMill.Transforms.InterpolationMode

InterpolationMode value specifying interpolation algorithm used during rotation.

Remarks

You can also use Rotate 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) method (or appropriate RotateAndFlip transform).

Examples

Visual Basic
'Rotate at 5 degrees with medium quality
bitmap.Transforms.Rotate(5, Aurigma.GraphicsMill.RgbColor.Yellow, _
 Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality)
C#
//Rotate at 5 degrees with medium quality
bitmap.Transforms.Rotate(5, Aurigma.GraphicsMill.RgbColor.Yellow, 
    Aurigma.GraphicsMill.Transforms.InterpolationMode.MediumQuality);

See Also

Reference