Packages

 

com.aspose.imaging

Interfaces

Classes

com.aspose.imaging

Class RotateFlipType

  • java.lang.Object
    • com.aspose.ms.System.ValueType<com.aspose.ms.System.Enum>
      • com.aspose.ms.System.Enum
        • com.aspose.imaging.RotateFlipType


  • public final class RotateFlipType
    extends com.aspose.ms.System.Enum
    Code example:

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


    String dir = "c:\\temp\\";
    
    int[] rotateFlipTypes = new int[]
            {
                    com.aspose.imaging.RotateFlipType.Rotate90FlipNone,
                    com.aspose.imaging.RotateFlipType.Rotate90FlipX,
                    com.aspose.imaging.RotateFlipType.Rotate90FlipXY,
                    com.aspose.imaging.RotateFlipType.Rotate90FlipY,
            };
    
    for (int rotateFlipType : rotateFlipTypes) {
        // Rotate, flip and save to the output file.
        com.aspose.imaging.Image image = com.aspose.imaging.Image.load(dir + "sample.bmp");
        try {
            image.rotateFlip(rotateFlipType);
            image.save(dir + "sample." + rotateFlipType + ".bmp");
        } finally {
            image.dispose();
        }
    }
    

    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.aspose.ms.System.Enum

        com.aspose.ms.System.Enum.AbstractEnum, com.aspose.ms.System.Enum.FlaggedEnum, com.aspose.ms.System.Enum.ObjectEnum, com.aspose.ms.System.Enum.SimpleEnum
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int Rotate180FlipNone
      Specifies a 180-degree clockwise rotation without flipping.
      static int Rotate180FlipX
      Specifies a 180-degree clockwise rotation followed by a horizontal flip.
      static int Rotate180FlipXY
      Specifies a 180-degree clockwise rotation followed by a horizontal and vertical flip.
      static int Rotate180FlipY
      Specifies a 180-degree clockwise rotation followed by a vertical flip.
      static int Rotate270FlipNone
      Specifies a 270-degree clockwise rotation without flipping.
      static int Rotate270FlipX
      Specifies a 270-degree clockwise rotation followed by a horizontal flip.
      static int Rotate270FlipXY
      Specifies a 270-degree clockwise rotation followed by a horizontal and vertical flip.
      static int Rotate270FlipY
      Specifies a 270-degree clockwise rotation followed by a vertical flip.
      static int Rotate90FlipNone
      Specifies how much an image is rotated and the axis used to flip the image.
      static int Rotate90FlipX
      Specifies a 90-degree clockwise rotation followed by a horizontal flip.
      static int Rotate90FlipXY
      Specifies a 90-degree clockwise rotation followed by a horizontal and vertical flip.
      static int Rotate90FlipY
      Specifies a 90-degree clockwise rotation followed by a vertical flip.
      static int RotateNoneFlipNone
      Specifies no clockwise rotation and no flipping.
      static int RotateNoneFlipX
      Specifies no clockwise rotation followed by a horizontal flip.
      static int RotateNoneFlipXY
      Specifies no clockwise rotation followed by a horizontal and vertical flip.
      static int RotateNoneFlipY
      Specifies no clockwise rotation followed by a vertical flip.
      • Fields inherited from class com.aspose.ms.System.Enum

        EnumSeparatorCharArray
    • Method Summary

      • Methods inherited from class com.aspose.ms.System.Enum

        Clone, CloneTo, format, format, get_Caption, get_Value, getName, getName, getNames, getNames, getNames, getUnderlyingType, getUnderlyingType, getValue, getValues, getValues, getValues, isDefined, isDefined, isDefined, isDefined, parse, parse, parse, parse, register, toObject, toString
    • Field Detail

      • RotateNoneFlipNone

        public static final int RotateNoneFlipNone

        Specifies no clockwise rotation and no flipping.

        See Also:
        Constant Field Values
      • Rotate90FlipNone

        public static final int Rotate90FlipNone

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

        See Also:
        Constant Field Values
      • Rotate180FlipNone

        public static final int Rotate180FlipNone

        Specifies a 180-degree clockwise rotation without flipping.

        See Also:
        Constant Field Values
      • Rotate270FlipNone

        public static final int Rotate270FlipNone

        Specifies a 270-degree clockwise rotation without flipping.

        See Also:
        Constant Field Values
      • RotateNoneFlipX

        public static final int RotateNoneFlipX

        Specifies no clockwise rotation followed by a horizontal flip.

        See Also:
        Constant Field Values
      • Rotate90FlipX

        public static final int Rotate90FlipX

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

        See Also:
        Constant Field Values
      • Rotate180FlipX

        public static final int Rotate180FlipX

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

        See Also:
        Constant Field Values
      • Rotate270FlipX

        public static final int Rotate270FlipX

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

        See Also:
        Constant Field Values
      • RotateNoneFlipY

        public static final int RotateNoneFlipY

        Specifies no clockwise rotation followed by a vertical flip.

        See Also:
        Constant Field Values
      • Rotate90FlipY

        public static final int Rotate90FlipY

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

        See Also:
        Constant Field Values
      • Rotate180FlipY

        public static final int Rotate180FlipY

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

        See Also:
        Constant Field Values
      • Rotate270FlipY

        public static final int Rotate270FlipY

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

        See Also:
        Constant Field Values
      • RotateNoneFlipXY

        public static final int RotateNoneFlipXY

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

        See Also:
        Constant Field Values
      • Rotate90FlipXY

        public static final int Rotate90FlipXY

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

        See Also:
        Constant Field Values
      • Rotate180FlipXY

        public static final int Rotate180FlipXY

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

        See Also:
        Constant Field Values
      • Rotate270FlipXY

        public static final int Rotate270FlipXY

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

        See Also:
        Constant Field Values