إنشاء صورة مصغرة للشريحة كـ JPEG

لإنشاء صورة مصغرة لأي شريحة مرغوبة باستخدام Aspose.Slides for .NET:

  • إنشاء نسخة من فئة Presentation.
  • الحصول على مرجع أي شريحة مرغوبة باستخدام معرّفها أو فهرسها.
  • الحصول على صورة المصغرة للشريحة المرجعية بالمقياس المحدد.
  • حفظ صورة المصغرة بأي تنسيق صورة مرغوب.

مثال

//Instantiate the Presentation class that represents the presentation file
using (Presentation pres = new Presentation("Slides Test Presentation.pptx"))
{
    //Access the first slide
    ISlide sld = pres.Slides[0];

    //Create a full scale image
    using (IImage image = sld.GetImage(1f, 1f))
    {
        //Save the image to disk in JPEG format
        image.Save("Test Thumbnail.jpg", ImageFormat.Jpeg);
    }
}

تنزيل مثال تشغيل

تنزيل كود العينة