com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Interface IImageCollection

    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method and Description
      IPPImage addFromSvg(java.lang.String svgContent)
      Deprecated. 
      Use method AddImage(ISvgImage svgImage). The method will be removed after release of version 19.10.
      IPPImage addFromSvg(java.lang.String svgContent, IExternalResourceResolver externalResResolver, java.lang.String baseUri)
      Deprecated. 
      Use method AddImage(ISvgImage svgImage). The method will be removed after release of version 19.10.
      IPPImage addImage(android.graphics.Bitmap 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(java.io.InputStream stream, int loadingStreamBehavior)
      Creates and adds an image to a presentation from stream.
      IPPImage addImage(IPPImage imageSource)
      Adds a copy of an image from an another presentation.
      IPPImage addImage(ISvgImage svgImage)
      Add an image to a presentation from SVG object.
      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(android.graphics.Bitmap 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(java.io.InputStream stream,
                          int loadingStreamBehavior)

        Creates and adds an image to a presentation from stream.

        Parameters:
        stream - Stream to add image file from.
        loadingStreamBehavior - The behavior which will be applied to the stream.
        Returns:
        Added IPPImage.
      • 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.
      • addImage

        IPPImage addImage(ISvgImage svgImage)

        Add an image to a presentation from SVG object.

        Parameters:
        svgImage - SVG image object ISvgImage
        Returns:
        Added image.
        Throws:
        com.aspose.ms.System.ArgumentNullException - Thrown when svgImage parameter is null.
      • addFromSvg

        @Deprecated
        IPPImage addFromSvg(java.lang.String svgContent)
        Deprecated. Use method AddImage(ISvgImage svgImage). The method will be removed after release of version 19.10.

        Add an image to a presentation from Svg.

        Parameters:
        svgContent - Svg content.


        Svg to Metafile(EmfPlusOnly) conversion will be performed

        Returns:
        Added image.
      • addFromSvg

        @Deprecated
        IPPImage addFromSvg(java.lang.String svgContent,
                                         IExternalResourceResolver externalResResolver,
                                         java.lang.String baseUri)
        Deprecated. Use method AddImage(ISvgImage svgImage). The method will be removed after release of version 19.10.

        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.