RotateFlip

DicomImage.RotateFlip method

Yalnızca Etkin çerçeveyi döndürür, çevirir veya döndürür ve döndürür.

public override void RotateFlip(RotateFlipType rotateFlipType)
ParametreTipTanım
rotateFlipTypeRotateFlipTypeDöndürme çevirme tipi.

Örnekler

Bu örnek bir DICOM görüntüsü yükler, onu saat yönünde 90 derece döndürür ve isteğe bağlı olarak görüntüyü yatay ve/veya dikey olarak çevirir.

[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)
{
    // Döndür, çevir ve çıktı dosyasına kaydet.
    using (Aspose.Imaging.FileFormats.Dicom.DicomImage image = (Aspose.Imaging.FileFormats.Dicom.DicomImage)Aspose.Imaging.Image.Load(dir + "sample.dicom"))
    {
        image.RotateFlip(rotateFlipType);
        image.Save(dir + "sample." + rotateFlipType + ".png", new Aspose.Imaging.ImageOptions.PngOptions());
    }
}

Ayrıca bakınız