com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class ImageCollection

  • java.lang.Object
    • com.aspose.slides.ImageCollection
    • Method Summary

      All Methods Instance Methods Concrete 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.
      void copyTo(com.aspose.ms.System.Array array, int index)
      Copies all elements from the collection to the specified array.
      IPPImage get_Item(int index)
      Gets the element at the specified index.
      com.aspose.slides.IDOMObject getParent_Immediate()
      Returns Parent_Immediate object.
      java.lang.Object getSyncRoot()
      Returns a synchronization root.
      boolean isSynchronized()
      Returns a value indicating whether access to the collection is synchronized (thread-safe).
      com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPPImage> iterator()
      Returns an enumerator that iterates through the collection.
      int size()
      Returns a number of images in the collection.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Method Detail

      • size

        public final int size()

        Returns a number of images in the collection. Read-only int.

        Specified by:
        size in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
      • get_Item

        public final IPPImage get_Item(int index)

        Gets the element at the specified index. Read-only IPPImage.

        Specified by:
        get_Item in interface IImageCollection
        Parameters:
        index - Index.
        Returns:
        Image.
      • addImage

        public final IPPImage addImage(IPPImage imageSource)

        Adds a copy of an image from an another presentation.

        Specified by:
        addImage in interface IImageCollection
        Parameters:
        imageSource - Source image.
        Returns:
        Added image.
      • addImage

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

        Add an image to a presentation.

        Specified by:
        addImage in interface IImageCollection
        Parameters:
        image - Image to add.


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

        Returns:
        Added image.
      • addImage

        public final IPPImage addImage(java.io.InputStream stream)

        Add an image to a presentation from stream.

        Specified by:
        addImage in interface IImageCollection
        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

        public final IPPImage addImage(byte[] buffer)

        Adds an image to a presentation from specified buffer.

        Specified by:
        addImage in interface IImageCollection
        Parameters:
        buffer - Buffer.
        Returns:
        Added image.
      • addFromSvg

        public final IPPImage addFromSvg(java.lang.String svgContent)

        Add an image to a presentation from Svg.

        Specified by:
        addFromSvg in interface IImageCollection
        Parameters:
        svgContent - Svg content.


        Svg to Metafile(EmfPlusOnly) conversion will be performed

        Returns:
        Added image.
      • addFromSvg

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

        Add an image to a presentation from Svg.

        Specified by:
        addFromSvg in interface IImageCollection
        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.
      • iterator

        public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPPImage> iterator()

        Returns an enumerator that iterates through the collection.

        Specified by:
        iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPPImage>
        Specified by:
        iterator in interface com.aspose.ms.System.Collections.IEnumerable<IPPImage>
        Specified by:
        iterator in interface java.lang.Iterable<IPPImage>
        Returns:
        A System.Collections.Generic.IEnumerator`1 that can be used to iterate through the collection.
      • copyTo

        public final void copyTo(com.aspose.ms.System.Array array,
                                 int index)

        Copies all elements from the collection to the specified array.

        Specified by:
        copyTo in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
        Parameters:
        array - Target array.
        index - Starting index in the target array.
      • isSynchronized

        public final boolean isSynchronized()

        Returns a value indicating whether access to the collection is synchronized (thread-safe). Read-only boolean.

        Specified by:
        isSynchronized in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
      • getSyncRoot

        public final java.lang.Object getSyncRoot()

        Returns a synchronization root. Read-only Object.

        Specified by:
        getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
      • getParent_Immediate

        public final com.aspose.slides.IDOMObject getParent_Immediate()

        Returns Parent_Immediate object. Read-only IDOMObject.