public final class ImageCollection extends DomObject<Presentation> implements IImageCollection
Represents collection of PPImage.
| Modifier and Type | Method and Description |
|---|---|
IPPImage |
addImage(java.awt.image.BufferedImage image)
Deprecated.
Use AddImage(IImage image) method instead. The method will be removed after release of version 24.7.
|
IPPImage |
addImage(byte[] buffer)
Adds an image to a presentation from specified buffer.
|
IPPImage |
addImage(IImage image)
Add an image to a presentation.
|
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.
|
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.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPPImage> |
iteratorJava()
Returns a java iterator for the entire collection.
|
int |
size()
Returns a number of images in the collection.
|
getParent_Immediatepublic 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 IImageCollectionindex - Index.public final IPPImage addImage(IPPImage imageSource)
Adds a copy of an image from an another presentation.
addImage in interface IImageCollectionimageSource - Source image.@Deprecated public final IPPImage addImage(java.awt.image.BufferedImage image)
Add an image to a presentation.
addImage in interface IImageCollectionimage - Image to add.
public final IPPImage addImage(IImage image)
Add an image to a presentation.
addImage in interface IImageCollectionimage - Image to add.
public final IPPImage addImage(java.io.InputStream stream)
Add an image to a presentation from stream.
addImage in interface IImageCollectionstream - 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 IImageCollectionstream - 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 IImageCollectionbuffer - Buffer.public final IPPImage addImage(ISvgImage svgImage)
Add an image to a presentation from Svg object.
addImage in interface IImageCollectionsvgImage - Svg image object ISvgImagecom.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>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IPPImage> iteratorJava()
Returns a java iterator for the entire collection.
iteratorJava in interface IGenericCollection<IPPImage>Iterator for the entire 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>Copyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.