com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IImageCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      IPPImage addFromSvg(java.lang.String svgContent)
      Add an image to a presentation from Svg.
      IPPImage addFromSvg(java.lang.String svgContent, IExternalResourceResolver externalResResolver, java.lang.String baseUri)
      Add an image to a presentation from Svg.
      IPPImage addImage(java.awt.image.BufferedImage image)
      Add an image to a presentation.
      IPPImage addImage(byte[] buffer)
      Adds an image to a presentation from specified buffer.
      IPPImage addImage(java.io.InputStream stream)
      Add an image to a presentation from stream.
      IPPImage addImage(IPPImage imageSource)
      Adds a copy of an image from an another presentation.
      IPPImage get_Item(int index)
      Returns image by its index.
      • Methods inherited from interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable

        iterator
      • Methods inherited from interface com.aspose.ms.System.Collections.ICollection

        copyTo, getSyncRoot, isSynchronized, size
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • get_Item

        IPPImage get_Item(int index)

        Returns image by its index.

        Parameters:
        index - Index.
        Returns:
        Image.
      • addImage

        IPPImage addImage(java.awt.image.BufferedImage image)

        Add an image to a presentation.

        Parameters:
        image - Image to add.


        This method converts WMF/EMF metafiles to raster PNG image before inserting to a presentation.

        Returns:
        Added image.
      • addImage

        IPPImage addImage(java.io.InputStream stream)

        Add an image to a presentation from stream.

        Parameters:
        stream - Stream to add image from.


        This method can add WMF/EMF metafiles to a presentation without converting them to raster PNG image.

        Returns:
        Added image.
      • addImage

        IPPImage addImage(byte[] buffer)

        Adds an image to a presentation from specified buffer.

        Parameters:
        buffer - Buffer.
        Returns:
        Added image.
      • addImage

        IPPImage addImage(IPPImage imageSource)

        Adds a copy of an image from an another presentation.

        Parameters:
        imageSource - Source image.
        Returns:
        Added image.
      • addFromSvg

        IPPImage addFromSvg(java.lang.String svgContent)

        Add an image to a presentation from Svg.

        Parameters:
        svgContent - Svg content.


        Svg to Metafile(EmfPlusOnly) conversion will be performed

        Returns:
        Added image.
      • addFromSvg

        IPPImage addFromSvg(java.lang.String svgContent,
                            IExternalResourceResolver externalResResolver,
                            java.lang.String baseUri)

        Add an image to a presentation from Svg.

        Parameters:
        svgContent - Svg content.
        externalResResolver - A callback object used to fetch external objects. If this parameter is null all external objects will be ignored.
        baseUri - Base URI of the specified Svg. Used to resolve relative links.


        Svg to Metafile(EmfPlusOnly) conversion will be performed

        Returns:
        Added image.