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

# Images

## Overview

`Images` is a class in Aspose.Slides FOSS for Java.

Methods to instantiate and work with {@link IImage}.

This class provides 3 methods for working with Images objects in Java programs.
Available methods include: `fromFile`, `fromStream`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.

## Methods

| Signature | Description |
|-----------|-------------|
| `fromFile(path: String)` → `IImage` | Creates an image from a file path. |
| `fromStream(stream: InputStream)` → `IImage` | Creates an image from an input stream. |
| `fromStream(stream: InputStream, contentType: String)` → `IImage` | Creates an image from an input stream with an explicit content type. |

## See Also

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