---
Product: Aspose.Slides
Platform: java
Page Type: reference
Canonical URL: https://reference.aspose.org/slides/java/iimagecollection
---

# IImageCollection

## Overview

`IImageCollection` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `Iterable<IPPImage>`.

Represents a collection of images in a presentation.

This interface declares 7 methods for IImageCollection objects in Java programs.
Available methods include: `addImage`, `asICollection`, `asIEnumerable`, `get`, `size`.
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}. |

## See Also

- [Aspose.Slides — Enterprise API Reference](https://reference.aspose.com/slides/)