IImageCollection

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

SignatureDescription
size()intReturns the number of images in the collection.
get(index: int)IPPImageGets the image at the specified index.
addImage(image: IImage)IPPImageAdds an image to the collection from an {@link IImage}.
addImage(imageData: byte[])IPPImageAdds an image to the collection from raw byte data.
addImage(stream: InputStream)IPPImageAdds 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}.

See Also