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

# PPImage

## Overview

`PPImage` is a class in Aspose.Slides FOSS for Java.
Inherits from: `IPPImage`.

Represents an image in a presentation.

This class provides 12 methods for working with PPImage objects in Java programs.
Available methods include: `PPImage`, `getBinaryData`, `getContentType`, `getHeight`, `getImage`, `getWidth`, `getX`, `getY`, `initInternal`, `replaceImage`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `binaryData`, `contentType`, `height`, `image`, `width`, `x`, and 1 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `binaryData` | `byte[]` | Read | {@inheritDoc}
 / |
| `image` | `IImage` | Read | {@inheritDoc}
 / |
| `contentType` | `String` | Read | {@inheritDoc}
 / |
| `width` | `int` | Read | {@inheritDoc}
 / |
| `height` | `int` | Read | {@inheritDoc}
 / |
| `x` | `int` | Read | {@inheritDoc}
  @return always {@code 0}
 / |
| `y` | `int` | Read | {@inheritDoc}
  @return always {@code 0}
 / |

## Methods

| Signature | Description |
|-----------|-------------|
| `PPImage()` | Creates an uninitialized {@code PPImage}. |
| `initInternal(pkg: OpcPackage, partName: String, imageData: byte[], contentType: String)` | Internal initialization with OPC package reference. |
| `getBinaryData()` → `byte[]` | {@inheritDoc}
 / |
| `getImage()` → `IImage` | {@inheritDoc}
 / |
| `getContentType()` → `String` | {@inheritDoc}
 / |
| `getWidth()` → `int` | {@inheritDoc}
 / |
| `getHeight()` → `int` | {@inheritDoc}
 / |
| `getX()` → `int` | {@inheritDoc}
  @return always {@code 0}
 / |
| `getY()` → `int` | {@inheritDoc}
  @return always {@code 0}
 / |
| `replaceImage(newImageData: byte[])` | {@inheritDoc}
 / |
| `replaceImage(newImage: IImage)` | {@inheritDoc}
 / |
| `replaceImage(newImage: IPPImage)` | {@inheritDoc}
 / |

## See Also

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