Enum RotateFlipType

Enum RotateFlipType

Namespace: Aspose.Imaging
Assembly: Aspose.Imaging.dll (25.7.0)

Specifies how much an image is rotated and the axis used to flip the image.

public enum RotateFlipType
    {
        None = 0,
        Rotate90FlipNone = 1,
        Rotate180FlipNone = 2,
        Rotate270FlipNone = 3,
        RotateNeg90FlipNone = 4,
        Rotate90FlipX = 5,
        Rotate180FlipX = 6,
        Rotate270FlipX = 7,
        RotateNeg90FlipX = 8,
        Rotate90FlipY = 9,
        Rotate180FlipY = 10,
        Rotate270FlipY = 11,
        RotateNeg90FlipY = 12
    }

Fields

Rotate180FlipNone = 2

Specifies a 180-degree clockwise rotation without flipping.

Rotate180FlipX = 6

Specifies a 180-degree clockwise rotation followed by a horizontal flip.

Rotate180FlipXY = 14

Specifies a 180-degree clockwise rotation followed by a horizontal and vertical flip.

Rotate180FlipY = 10

Specifies a 180-degree clockwise rotation followed by a vertical flip.

Rotate270FlipNone = 3

Specifies a 270-degree clockwise rotation without flipping.

Rotate270FlipX = 7

Specifies a 270-degree clockwise rotation followed by a horizontal flip.

Rotate270FlipXY = 15

Specifies a 270-degree clockwise rotation followed by a horizontal and vertical flip.

Rotate270FlipY = 11

Specifies a 270-degree clockwise rotation followed by a vertical flip.

Rotate90FlipNone = 1

Specifies a 90-degree clockwise rotation without flipping.

Rotate90FlipX = 5

Specifies a 90-degree clockwise rotation followed by a horizontal flip.

Rotate90FlipXY = 13

Specifies a 90-degree clockwise rotation followed by a horizontal and vertical flip.

Rotate90FlipY = 9

Specifies a 90-degree clockwise rotation followed by a vertical flip.

RotateNoneFlipNone = 0

Specifies no clockwise rotation and no flipping.

RotateNoneFlipX = 4

Specifies no clockwise rotation followed by a horizontal flip.

RotateNoneFlipXY = 12

Specifies no clockwise rotation followed by a horizontal and vertical flip.

RotateNoneFlipY = 8

Specifies no clockwise rotation followed by a vertical flip.

Examples

This example loads an image, rotates it by 90 degrees clockwise and optionally flips the image horizontally and(or) vertically.

string dir = "c:\\temp\\";
   Aspose.Imaging.RotateFlipType[] rotateFlipTypes = new Aspose.Imaging.RotateFlipType[]
   {
       Aspose.Imaging.RotateFlipType.Rotate90FlipNone,
       Aspose.Imaging.RotateFlipType.Rotate90FlipX,
       Aspose.Imaging.RotateFlipType.Rotate90FlipXY,
       Aspose.Imaging.RotateFlipType.Rotate90FlipY
   };
   foreach (Aspose.Imaging.RotateFlipType rotateFlipType in rotateFlipTypes)
   {
       using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.bmp"))
       {
           image.RotateFlip(rotateFlipType);
           image.Save(dir + "sample." + rotateFlipType + ".bmp");
       }
   }
 English