LosslessJpeg.WriteRotated Method (String, RotateFlipType)

Rotates and/or flips the image and writes the result to the specified file.

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

Syntax

C#
public void WriteRotated(
	string fileName,
	RotateFlipType transform
)

Parameters

fileName

Type: System.String

The name of the file to save the result.
transform

Type: System.Drawing.RotateFlipType

A RotateFlipType specifying how much an image is rotated and the axis used to flip the image.

Examples

C#
using (var losslessJpeg = new LosslessJpeg(@"Images\in.jpg"))
{
    losslessJpeg.WriteRotated(@"Images\Output\out.jpg", System.Drawing.RotateFlipType.Rotate90FlipNone);
}
C#
using (var losslessJpeg = new LosslessJpeg(@"Images\in.jpg"))
{
    losslessJpeg.WriteRotated(@"Images\out.jpg", System.Drawing.RotateFlipType.RotateNoneFlipX);
}

See Also

Reference

Manual