API عمومی و تغییرات ناسازگار با عقب‌گرد در Aspose.Slides برای Java 15.9.0

تغییرات API عمومی

متدهای renderToGraphics به com.aspose.slides.ISlide، Slide اضافه شدند

متدهای زیر اضافه شده‌اند:

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); به اینترفیس com.aspose.slides.ISlide و کلاس com.aspose.slides.Slide اضافه شدند. این متدها امکان رندر کردن یک اسلاید به شی Graphics2D مشخص را فراهم می‌کنند.


 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);