Slide Thumbnails in Aspose.Slides
Contents
[
Hide
]
Aspose.Slides - Slide Thumbnails
To generate the thumbnail of any desired slide using Aspose.Slides for Java:
- 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.
Java
//Instantiate a Presentation class that represents the PPTX file
Presentation pres = new Presentation(dataDir + "presentation.pptx");
//Access the first slide
ISlide sld = pres.getSlides().get_Item(0);
//Create a full scale image
BufferedImage image = sld.getThumbnail(1f, 1f);
//Save the image to disk in JPEG format
ImageIO.write(image,"jpeg",new File(dataDir + "AsposeThumbnail.jpg"));
Download Running Code
Download Sample Code
For more details, visit Creating Slides Thumbnail Image.