Browse our Products

Aspose.Slides for Android via Java 23.10 Release Notes

KeySummaryCategory
SLIDESANDROID-441Use Aspose.Slides for Java 23.10 featuresEnhancement

Public API Changes

TiffOptions.BwConversionMode property and BlackWhiteConversionMode enum added

The new TiffOptions.BwConversionMode property allows you to specify the algorithm for converting a color image to a black and white image. This setting is applied only when CompressionType is set to TiffCompressionTypes.CCITT4 or TiffCompressionTypes.CCITT3.

Example:

TiffOptions tiffOptions = new TiffOptions();
tiffOptions.setCompressionType(TiffCompressionTypes.CCITT4);
tiffOptions.setBwConversionMode(BlackWhiteConversionMode.Dithering);

Presentation presentation = new Presentation();
try {
    presentation.save(tiffFilePath, SaveFormat.Tiff, tiffOptions);
} finally {
    if (presentation != null) presentation.dispose();
}

InkBrush and InkTrace classes have been added

New classes related to Ink management API have been added:

  • InkTrace represents a trace element that is used to record the data captured by the digitizer. It contains a sequence of points.
  • InkBrush represents trace brush.

Example:

Presentation pres = new Presentation("pres.pptx");
try {
    IInk ink = (IInk)pres.getSlides().get_Item(0).getShapes().get_Item(0);
    IInkTrace[] traces = ink.getTraces();
    IInkBrush brush = traces[0].getBrush();
} finally {
    if (pres != null) pres.dispose();
}

Paragraph.GetLinesCount method has been added

The new GetLinesCount method of the Paragraph class allows you to get the number of lines in a paragraph.

Example:

Presentation pres = new Presentation();
try {
    ISlide sld = pres.getSlides().get_Item(0);
    IAutoShape ashp = sld.getShapes().addAutoShape(ShapeType.Rectangle, 150, 75, 150, 50);
    IParagraph para = ashp.getTextFrame().getParagraphs().get_Item(0);
    IPortion portion = para.getPortions().get_Item(0);
    portion.setText("Aspose Paragraph GetLinesCount() Example");
    System.out.println("Lines Count = " + para.getLinesCount());
} finally {
    if (pres != null) pres.dispose();
}