Image.RotateFlip

Image.RotateFlip method

Rotates, flips, or rotates and flips the image.

public abstract void RotateFlip(RotateFlipType rotateFlipType)
ParameterTypeDescription
rotateFlipTypeRotateFlipTypeType of the rotate flip.

Examples

This example demonstrates the use of Rotate operation on an image. Example loads an existing image file from some disk location and performs the Rotate operation on the image according to the value of Enum Aspose.PSD.RotateFlipType

[C#]

//Create an instance of image class and initialize it with an existing image file through File path
using (Aspose.PSD.Image image = Aspose.PSD.Image.Load(@"C:\temp\image.psd"))
{
    //Rotate the image at 180 degree about X axis
    image.RotateFlip(Aspose.PSD.RotateFlipType.Rotate180FlipX);

    // save all changes.
    image.Save();
}

See Also