Public API and Backwards Incompatible Changes in Aspose.Slides for Java 15.9.0
Contents
[
Hide
]
This page lists all added or removed classes, methods, properties and so on, and other changes introduced with the Aspose.Slides for Java 15.8.0 API.
Public API Changes
renderToGraphics methods were added to com.aspose.slides.ISlide, Slide
The following methods have been added:
renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics, int width, int height); renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics, float scale); renderToGraphics(boolean withNotes, java.awt.Graphics2D graphics); were added to com.aspose.slides.ISlide interface and to com.aspose.slides.Slide class. These methods allow render a slide to specified Graphics2D object.
BufferedImage bufferedImage = new BufferedImage(960, 720, BufferedImage.TYPE_INT_ARGB);
Graphics2D g2d = bufferedImage.createGraphics();
Presentation pres = new Presentation("SomePresentation.pptx");
pres.getSlides().get_Item(0).renderToGraphics(false, g2d, bufferedImage.getWidth(), bufferedImage.getHeight());
g2d.dispose();
ImageIO.write(bufferedImage, "png", fileName);