RotateFlip
RasterCachedImage.RotateFlip method
Dreht, kippt oder dreht und kippt das Bild.
public override void RotateFlip(RotateFlipType rotateFlipType)
| Parameter | Typ | Beschreibung | 
|---|---|---|
| rotateFlipType | RotateFlipType | Der Rotations-Flip-Typ. | 
Beispiele
Dieses Beispiel lädt ein zwischengespeichertes Rasterbild, dreht es um 90 Grad im Uhrzeigersinn und dreht das Bild optional horizontal und/oder vertikal.
[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)
{
    // Drehen, spiegeln und in der Ausgabedatei speichern.
    using (Aspose.Imaging.RasterCachedImage image = (Aspose.Imaging.RasterCachedImage)Aspose.Imaging.Image.Load(dir + "sample.bmp"))
    {
        image.RotateFlip(rotateFlipType);
        image.Save(dir + "sample." + rotateFlipType + ".bmp");
    }
}
Siehe auch
- enum RotateFlipType
- class RasterCachedImage
- namensraum Aspose.Imaging
- Montage Aspose.Imaging