TiffImageRotateFlip Method |
Namespace: Aspose.Imaging.FileFormats.Tiff
[C#] 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.FileFormats.Tiff.TiffImage image = (Aspose.Imaging.FileFormats.Tiff.TiffImage)Aspose.Imaging.Image.Load(dir + "sample.tif")) { image.RotateFlip(rotateFlipType); image.Save(dir + "sample." + rotateFlipType + ".png", new Aspose.Imaging.ImageOptions.PngOptions()); } }