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 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.
      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(android.graphics.Bitmap 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(java.io.InputStream stream,
                                       int loadingStreamBehavior)

        Creates and adds an image to a presentation from stream.

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

        public final IPPImage addImage(ISvgImage svgImage)

        Add an image to a presentation from Svg object.

        Specified by:
        addImage in interface IImageCollection
        Parameters:
        svgImage - Svg image object ISvgImage
        Returns:
        Added image.
        Throws:
        com.aspose.ms.System.ArgumentNullException - When svgImage parameter is null.
      • 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.