IImageCollection
Overview
IImageCollection is a interface in Aspose.Slides FOSS for Java.
Inherits from: Iterable<IPPImage>.
Represents a collection of images in a presentation.
This interface provides 7 methods for working with IImageCollection objects in Java programs.
Available methods include: addImage, asICollection, asIEnumerable, get, size.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Methods
| Signature | Description |
|---|---|
size() → int | Returns the number of images in the collection. |
get(index: int) → IPPImage | Gets the image at the specified index. |
addImage(image: IImage) → IPPImage | Adds an image to the collection from an {@link IImage}. |
addImage(imageData: byte[]) → IPPImage | Adds an image to the collection from raw byte data. |
addImage(stream: InputStream) → IPPImage | Adds an image to the collection from an input stream. |
asICollection() → List<IPPImage> | Returns this collection as an unmodifiable {@link List}. |
asIEnumerable() → Iterable<IPPImage> | Returns this collection as an {@link Iterable}. |