com.aspose.slides
Class ImageExCollection

java.lang.Object
  extended by com.aspose.slides.ImagesEx
      extended by com.aspose.slides.ImageExCollection
All Implemented Interfaces:
com.aspose.ms.System.Collections.ICollection<ImageEx>, com.aspose.ms.System.Collections.IEnumerable<ImageEx>, java.lang.Iterable<ImageEx>

public final class ImageExCollection
extends ImagesEx
implements com.aspose.ms.System.Collections.ICollection<ImageEx>

Represents collection of ImageEx.


Method Summary
 ImageEx addImage(java.awt.image.BufferedImage image)
           Add an image to a presentation.
 ImageEx addImage(ImageEx image)
           Adds a copy of an image from an another presentation.
 ImageEx addImage(java.io.InputStream stream)
           
 void copyTo(com.aspose.ms.System.Array array, int index)
           Copies all elements from the collection to the specified array.
 ImageEx get_Item(int index)
           Gets the element at the specified index.
 int getCount()
           Returns a number of images in the collection.
 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.IEnumerator<ImageEx> iterator()
           Returns an enumerator for the entire collection.
 int size()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyTo

public 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<ImageEx>
Parameters:
array - Target array.
index - Starting index in the target array.

isSynchronized

public boolean isSynchronized()

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

Specified by:
isSynchronized in interface com.aspose.ms.System.Collections.ICollection<ImageEx>

getSyncRoot

public java.lang.Object getSyncRoot()

Returns a synchronization root. Readonly object.

Specified by:
getSyncRoot in interface com.aspose.ms.System.Collections.ICollection<ImageEx>

size

public int size()
Specified by:
size in interface com.aspose.ms.System.Collections.ICollection<ImageEx>

getCount

public int getCount()
Description copied from class: ImagesEx

Returns a number of images in the collection.

Overrides:
getCount in class ImagesEx

get_Item

public ImageEx get_Item(int index)
Description copied from class: ImagesEx

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

Overrides:
get_Item in class ImagesEx

addImage

public ImageEx addImage(ImageEx image)
Description copied from class: ImagesEx

Adds a copy of an image from an another presentation.

Overrides:
addImage in class ImagesEx
Parameters:
image - Source image.
Returns:
Added image.

addImage

public ImageEx addImage(java.awt.image.BufferedImage image)
Description copied from class: ImagesEx

Add an image to a presentation.

Overrides:
addImage in class ImagesEx
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 ImageEx addImage(java.io.InputStream stream)
Overrides:
addImage in class ImagesEx

iterator

public com.aspose.ms.System.Collections.IEnumerator<ImageEx> iterator()
Description copied from class: ImagesEx

Returns an enumerator for the entire collection.

Specified by:
iterator in interface com.aspose.ms.System.Collections.IEnumerable<ImageEx>
Specified by:
iterator in interface java.lang.Iterable<ImageEx>
Overrides:
iterator in class ImagesEx
Returns:
An IEnumerator for the entire collection.