Browse our Products

Aspose.Slides for Android via Java 24.4 Release Notes

KeySummaryCategory
SLIDESANDROID-453Use Aspose.Slides for Java 24.4 featuresEnhancement

Public API Changes

Introducing a new Modern API

Historically, Aspose Slides has a dependency on java.awt and has in the public API the following classes from there:

This means that all public API members that have the following classes in their signature will be removed in version 24.8:

For more details, see: Modern API

Added the following classes and enums to the public API:

  • IImage - Represents the raster or vector image.
  • ImageFormat - Represents the file format of the image.
  • Images - The static class that contains methods to instantiate IImage.

Methods to be removed and their replacement in Modern API

The following methods and properties are decared as obsolete and will be removed in version 24.8.

Presentation

Method SignatureReplacement Method Signature
public final Bitmap[] getThumbnails(IRenderingOptions options)public final IImage[] getImages(IRenderingOptions options)
public final Bitmap[] getThumbnails(IRenderingOptions options, Size imageSize)public final IImage[] getImages(IRenderingOptions options, Size imageSize)
public final Bitmap[] getThumbnails(IRenderingOptions options, float scaleX, float scaleY)public final IImage[] getImages(IRenderingOptions options, float scaleX, float scaleY)
public final Bitmap[] getThumbnails(IRenderingOptions options, int[] slides)public final IImage[] getImages(IRenderingOptions options, int[] slides)
public final Bitmap[] getThumbnails(IRenderingOptions options, int[] slides, Size imageSize)public final IImage[] getImages(IRenderingOptions options, int[] slides, Size imageSize)
public final Bitmap[] getThumbnails(IRenderingOptions options, int[] slides, float scaleX, float scaleY)public final IImage[] getImages(IRenderingOptions options, int[] slides, float scaleX, float scaleY)

Shape

Method SignatureReplacement Method Signature
public final Bitmap getThumbnail()public final IImage getImage()
public final Bitmap getThumbnail(int bounds, float scaleX, float scaleY)public final IImage getImage(int bounds, float scaleX, float scaleY)

Slide

Method SignatureReplacement Method Signature
public final Bitmap getThumbnail()public final IImage getImage()
public final Bitmap getThumbnail(Size imageSize)public final IImage getImage(Size imageSize)
public final Bitmap getThumbnail(float scaleX, float scaleY)public final IImage getImage(float scaleX, float scaleY)
public final Bitmap getThumbnail(IRenderingOptions options)public final IImage getImage(IRenderingOptions options)
public final Bitmap getThumbnail(IRenderingOptions options, Size imageSize)public final IImage getImage(IRenderingOptions options, Size imageSize)
public final Bitmap getThumbnail(IRenderingOptions options, float scaleX, float scaleY)public final IImage getImage(IRenderingOptions options, float scaleX, float scaleY)
public final Bitmap getThumbnail(ITiffOptions options)public final IImage getImage(ITiffOptions options)
public final void renderToGraphics(IRenderingOptions options, Canvas graphics)Will be deleted completely
public final void renderToGraphics(IRenderingOptions options, Canvas graphics, Size renderingSize)Will be deleted completely
public final void renderToGraphics(IRenderingOptions options, Canvas graphics, float scaleX, float scaleY)Will be deleted completely

Output

Method SignatureReplacement Method Signature
public final IOutputFile add(String path, Bitmap image)public final IOutputFile add(String path, IImage image)

ImageCollection

Method SignatureReplacement Method Signature
public final IPPImage addImage(Bitmap image)public final IPPImage addImage(IImage image)

PPImage

Method SignatureReplacement Method Signature
public final Bitmap getSystemImage()public final IImage getImage()

PatternFormat

Method SignatureReplacement Method Signature
public final Bitmap getTileImage(Integer styleColor)public final IImage getTile(Integer styleColor)
public final Bitmap getTileImage(Integer background, Integer foreground)public final IImage getTile(Integer background, Integer foreground)

PatternFormatEffectiveData

Method SignatureReplacement Method Signature
public final Bitmap getTileImage(Integer background, Integer foreground)public final IImage getTileIImage(Integer background, Integer foreground)

PdfOptions.RasterizeUnsupportedFontStyles property added

Added a new property PdfOptions.RasterizeUnsupportedFontStyles which indicates whether text should be rasterized as a bitmap and saved to PDF when the font does not support bold styling. This approach can enhance the quality of text in the resulting PDF for certain fonts.

Example:

Presentation pres = new Presentation();
try {
    PdfOptions pdfOptions = new PdfOptions();
    pdfOptions.setRasterizeUnsupportedFontStyles(true);
    pres.save("pres.pdf", SaveFormat.Pdf, pdfOptions);
} finally {
    if (pres != null) pres.dispose();
}

PptxOptions.Zip64Mode property added - ZIP64 format support

A new property PptxOptions.Zip64Mode specifies whether the ZIP64 format is used for the Presentation document.

Example:

Presentation pres = new Presentation("demo.pptx");
try {
    PptxOptions pptxOptions = new PptxOptions();
    pptxOptions.setZip64Mode(Zip64Mode.Always);
    pres.save("demo-zip64.pptx", SaveFormat.Pptx, pptxOptions);
} finally {
    if (pres != null) pres.dispose();
}

ZoomObject.Image property replaced with ZoomObject.ZoomImage

Instead of ZoomObject.Image, use the ZoomObject.ZoomImage property:

Presentation pres = new Presentation("pres.pptx");
try {
    IZoomFrame zoomFrame = pres.getSlides().get_Item(0).getShapes().addZoomFrame(150, 20, 50, 50, pres.getSlides().get_Item(1));
    IPPImage image = pres.getImages().addImage(Images.fromFile("image.png"));
    zoomFrame.setZoomImage(image);
} finally {
    if (pres != null) pres.dispose();
}