ImageCollection

Overview

ImageCollection is a class in Aspose.Slides FOSS for Java. Inherits from: IImageCollection.

Represents a collection of images in a presentation.

This class declares 12 methods for ImageCollection objects in Java programs. Available methods include: ImageCollection, addImage, asICollection, asIEnumerable, findNextImageNumber, get, initInternal, iterator, size. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

Methods

SignatureDescription
ImageCollection(pkg: OpcPackage)Creates an image collection backed by the given OPC package.
ImageCollection()Creates an uninitialized image collection.
initInternal(opcPackage: OpcPackage)Internal initialization — scans the package for all images in {@code ppt/media/}.
addImage(image: IImage) → IPPImageAdds image data from an InputStream and returns the stored IPPImage
addImage(imageData: byte[]) → IPPImageCalls addImage(imageData) on this ImageCollection instance.
addImage(stream: InputStream) → IPPImageCalls addImage(stream) on this ImageCollection instance.
get(index: int) → IPPImageReturns the IPPImage at the specified index
size() → intCalls size on this ImageCollection instance.
asICollection() → List<IPPImage>Returns a List view of the IPPImage items
asIEnumerable() → Iterable<IPPImage>Returns an Iterable view of the IPPImage items
iterator() → Iterator<IPPImage>Returns an Iterator over the IPPImage items
findNextImageNumber() → intFinds the next available image number in {@code ppt/media/}.

See Also

 English