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

# IImage

## Overview

`IImage` is a interface in Aspose.Slides FOSS for Java.
Inherits from: `AutoCloseable`.

Represents a raster or vector image.

This interface provides 8 methods for working with IImage objects in Java programs.
Available methods include: `getHeight`, `getSize`, `getWidth`, `save`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `height`, `size`, `width`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `size` | `Size` | Read | Gets the size of the image. |
| `width` | `int` | Read | Gets the width of the image in pixels. |
| `height` | `int` | Read | Gets the height of the image in pixels. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getSize()` → `Size` | Gets the size of the image. |
| `getWidth()` → `int` | Gets the width of the image in pixels. |
| `getHeight()` → `int` | Gets the height of the image in pixels. |
| `save(filename: String)` | Saves the image to the specified file. |
| `save(filename: String, format: String)` | Saves the image to the specified file in the given format. |
| `save(stream: OutputStream, format: String)` | Saves the image to the specified stream in the given format. |
| `save(filename: String, format: String, quality: int)` | Saves the image to the specified file in the given format and quality. |
| `save(stream: OutputStream, format: String, quality: int)` | Saves the image to the specified stream in the given format and quality. |

## See Also

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