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

# Image

## Overview

`Image` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IImage`.

Represents a raster or vector image.

This class provides 13 methods for working with Image objects in Java programs.
Available methods include: `Image`, `close`, `getContentType`, `getData`, `getHeight`, `getSize`, `getWidth`, `initInternal`, `save`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `contentType`, `data`, `height`, `size`, `width`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `size` | `Size` | Read | {@inheritDoc}
 / |
| `width` | `int` | Read | {@inheritDoc}
 / |
| `height` | `int` | Read | {@inheritDoc}
 / |
| `contentType` | `String` | Read | Gets the MIME content type of the image. |
| `data` | `byte[]` | Read | Gets the raw image data. |

## Methods

| Signature | Description |
|-----------|-------------|
| `Image()` | Creates an uninitialized image. |
| `initInternal(data: byte[], contentType: String)` | Internal initialization with image data. |
| `getSize()` → `Size` | {@inheritDoc}
 / |
| `getWidth()` → `int` | {@inheritDoc}
 / |
| `getHeight()` → `int` | {@inheritDoc}
 / |
| `getContentType()` → `String` | Gets the MIME content type of the image. |
| `getData()` → `byte[]` | Gets the raw image data. |
| `save(filename: String)` | {@inheritDoc}
 / |
| `save(filename: String, format: String)` | {@inheritDoc}
 / |
| `save(filename: String, format: String, quality: int)` | {@inheritDoc}
 / |
| `save(stream: OutputStream, format: String)` | {@inheritDoc}
 / |
| `save(stream: OutputStream, format: String, quality: int)` | {@inheritDoc}
 / |
| `close()` | {@inheritDoc}
 / |

## See Also

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