RotateFlipType

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class RotateFlipType extends System.Enum

指定图像的旋转角度以及用于翻转图像的轴。

字段

字段描述
RotateNoneFlipNone指定不进行顺时针旋转且不翻转。
Rotate90FlipNone指定图像的旋转角度以及用于翻转图像的轴。
Rotate180FlipNone指定 180 度顺时针旋转且不翻转。
Rotate270FlipNone指定 270 度顺时针旋转且不翻转。
RotateNoneFlipX指定不进行顺时针旋转,然后进行水平翻转。
Rotate90FlipX指定 90 度顺时针旋转,然后进行水平翻转。
Rotate180FlipX指定 180 度顺时针旋转,然后进行水平翻转。
Rotate270FlipX指定 270 度顺时针旋转,然后进行水平翻转。
RotateNoneFlipY指定不进行顺时针旋转,然后进行垂直翻转。
Rotate90FlipY指定 90 度顺时针旋转,然后进行垂直翻转。
Rotate180FlipY指定 180 度顺时针旋转,然后进行垂直翻转。
Rotate270FlipY指定先顺时针旋转270度,然后进行垂直翻转。
RotateNoneFlipXY指定不进行顺时针旋转,然后进行水平和垂直翻转。
Rotate90FlipXY指定先顺时针旋转90度,然后进行水平和垂直翻转。
Rotate180FlipXY指定先顺时针旋转180度,然后进行水平和垂直翻转。
Rotate270FlipXY指定先顺时针旋转270度,然后进行水平和垂直翻转。

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) {
    // 旋转、翻转并保存到输出文件。
    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();
    }
}

RotateNoneFlipNone

public static final int RotateNoneFlipNone

指定不进行顺时针旋转且不翻转。

Rotate90FlipNone

public static final int Rotate90FlipNone

指定图像的旋转角度以及用于翻转图像的轴。

Rotate180FlipNone

public static final int Rotate180FlipNone

指定 180 度顺时针旋转且不翻转。

Rotate270FlipNone

public static final int Rotate270FlipNone

指定 270 度顺时针旋转且不翻转。

RotateNoneFlipX

public static final int RotateNoneFlipX

指定不进行顺时针旋转,然后进行水平翻转。

Rotate90FlipX

public static final int Rotate90FlipX

指定 90 度顺时针旋转,然后进行水平翻转。

Rotate180FlipX

public static final int Rotate180FlipX

指定 180 度顺时针旋转,然后进行水平翻转。

Rotate270FlipX

public static final int Rotate270FlipX

指定 270 度顺时针旋转,然后进行水平翻转。

RotateNoneFlipY

public static final int RotateNoneFlipY

指定不进行顺时针旋转,然后进行垂直翻转。

Rotate90FlipY

public static final int Rotate90FlipY

指定 90 度顺时针旋转,然后进行垂直翻转。

Rotate180FlipY

public static final int Rotate180FlipY

指定 180 度顺时针旋转,然后进行垂直翻转。

Rotate270FlipY

public static final int Rotate270FlipY

指定先顺时针旋转270度,然后进行垂直翻转。

RotateNoneFlipXY

public static final int RotateNoneFlipXY

指定不进行顺时针旋转,然后进行水平和垂直翻转。

Rotate90FlipXY

public static final int Rotate90FlipXY

指定先顺时针旋转90度,然后进行水平和垂直翻转。

Rotate180FlipXY

public static final int Rotate180FlipXY

指定先顺时针旋转180度,然后进行水平和垂直翻转。

Rotate270FlipXY

public static final int Rotate270FlipXY

指定先顺时针旋转270度,然后进行水平和垂直翻转。