Generate Slide Thumbnail as JPEG
Contents
[
Hide
]
To generate the thumbnail of any desired slide using Aspose.Slides for .NET:
- Create an instance of the Presentation class.
- Obtain the reference of any desired slide by using its ID or index.
- Get the thumbnail image of the referenced slide on a specified scale.
- Save the thumbnail image in any desired image format.
Example
//Instantiate a 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
Bitmap bmp = sld.GetThumbnail(1f, 1f);
//Save the image to disk in JPEG format
bmp.Save("Test Thumbnail.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);
Download Running Example
- [CodePlex](https://asposeslidesvsto.codeplex.com/SourceControl/latest#Aspose.Slides Features missing in VSTO/Slide Thumbnail to JPEG/)
- GitHub
- Code.MSDN
Download Sample Code
For more details, visit Creating Slides Thumbnail Image.