public final class ImageCollection extends java.lang.Object implements IImageCollection
Represents collection of PPImage.
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.
|
public final int size()
Returns a number of images in the collection.
Read-only int
.
size
in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
public final IPPImage get_Item(int index)
Gets the element at the specified index.
Read-only IPPImage
.
get_Item
in interface IImageCollection
index
- Index.public final IPPImage addImage(IPPImage imageSource)
Adds a copy of an image from an another presentation.
addImage
in interface IImageCollection
imageSource
- Source image.public final IPPImage addImage(android.graphics.Bitmap image)
Add an image to a presentation.
addImage
in interface IImageCollection
image
- Image to add.
public final IPPImage addImage(java.io.InputStream stream)
Add an image to a presentation from stream.
addImage
in interface IImageCollection
stream
- Stream to add image from.
public final IPPImage addImage(java.io.InputStream stream, int loadingStreamBehavior)
Creates and adds an image to a presentation from stream.
addImage
in interface IImageCollection
stream
- Stream to add image file from.loadingStreamBehavior
- The behavior which will be applied to the stream.IPPImage
.public final IPPImage addImage(byte[] buffer)
Adds an image to a presentation from specified buffer.
addImage
in interface IImageCollection
buffer
- Buffer.public final IPPImage addImage(ISvgImage svgImage)
Add an image to a presentation from Svg object.
addImage
in interface IImageCollection
svgImage
- Svg image object ISvgImage
com.aspose.ms.System.ArgumentNullException
- When svgImage parameter is null.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPPImage> iterator()
Returns an enumerator that iterates through the collection.
iterator
in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IPPImage>
iterator
in interface com.aspose.ms.System.Collections.IEnumerable<IPPImage>
iterator
in interface java.lang.Iterable<IPPImage>
System.Collections.Generic.IEnumerator`1
that can be used to iterate through the collection.public final void copyTo(com.aspose.ms.System.Array array, int index)
Copies all elements from the collection to the specified array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
array
- Target array.index
- Starting index in the target array.public final boolean isSynchronized()
Returns a value indicating whether access to the collection is synchronized (thread-safe).
Read-only boolean
.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
public final java.lang.Object getSyncRoot()
Returns a synchronization root.
Read-only Object
.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection<IPPImage>
public final com.aspose.slides.IDOMObject getParent_Immediate()
Returns Parent_Immediate object.
Read-only IDOMObject
.