Enum RotateFlipType

Enum RotateFlipType

名称: Aspose.Imaging 收藏: Aspose.Imaging.dll (25.4.0)

指定一个图像是多么旋转,轴用于滑动图像。

public enum RotateFlipType

Fields

Rotate180FlipNone = 2

指定 180 度时钟式旋转,没有滑动。

Rotate180FlipX = 6

指定一个180度时钟旋转,其次是垂直滑动。

Rotate180FlipXY = 14

指定一个180度时钟旋转,其次是垂直和垂直旋转。

Rotate180FlipY = 10

指定一个180度时钟式旋转,随后是垂直滑动。

Rotate270FlipNone = 3

指定一个 270 度时钟式旋转,没有滑动。

Rotate270FlipX = 7

指定一个270度时钟旋转,随后是垂直滑动。

Rotate270FlipXY = 15

指定一个270度时钟式旋转,随后是水平和垂直的旋转。

Rotate270FlipY = 11

指定一个270度时钟式旋转,随后是垂直滑动。

Rotate90FlipNone = 1

指定90度时钟式旋转,无滑动。

Rotate90FlipX = 5

指定一个90度时钟式旋转,随后是垂直滑动。

Rotate90FlipXY = 13

指定一个90度时钟式旋转,随后是水平和垂直的旋转。

Rotate90FlipY = 9

指定一个90度时钟式旋转,随后是垂直滑动。

RotateNoneFlipNone = 0

它没有时钟旋转,也没有飞行。

RotateNoneFlipX = 4

没有按时旋转,随后是垂直旋转。

RotateNoneFlipXY = 12

没有按时旋转,随后是垂直和垂直旋转。

RotateNoneFlipY = 8

没有按时旋转,随后是垂直旋转。

Examples

此示例加载图像,旋转图像90度时钟,并可选地垂直和(或)垂直滑动图像。

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)
                                                                                                                                          {
                                                                                                                                              // Rotate, flip and save to the output file.
                                                                                                                                              using (Aspose.Imaging.Image image = Aspose.Imaging.Image.Load(dir + "sample.bmp"))
                                                                                                                                              {
                                                                                                                                                  image.RotateFlip(rotateFlipType);
                                                                                                                                                  image.Save(dir + "sample." + rotateFlipType + ".bmp");
                                                                                                                                              }
                                                                                                                                          }
 中文