RasterCachedImage.RotateFlip

RasterCachedImage.RotateFlip method

يدور أو يقلب أو يدور ويقلب الصورة.

public override void RotateFlip(RotateFlipType rotateFlipType)
معاملنوعالوصف
rotateFlipTypeRotateFlipTypeنوع الدوران والقلب.

أمثلة

هذا المثال يحمل صورة مخزنة بنظام raster، يدورها 90 درجة باتجاه عقارب الساعة ويقلبها اختياريًا أفقيًا و(أو) عموديًا.

[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)
{
    // قم بالدوران والقلوب واحفظ إلى ملف الإخراج.
    using (Aspose.Imaging.RasterCachedImage image = (Aspose.Imaging.RasterCachedImage)Aspose.Imaging.Image.Load(dir + "sample.bmp"))
    {
        image.RotateFlip(rotateFlipType);
        image.Save(dir + "sample." + rotateFlipType + ".bmp");
    }
}

انظر أيضًا