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

# Picture

## Overview

`Picture` is a class in Aspose.Slides FOSS for Java.
Inherits from: `ISlidesPicture`, `ISlideComponent`, `IPresentationComponent`.

Represents a picture in a presentation.

This class provides 14 methods for working with Picture objects in Java programs.
Available methods include: `asIPresentationComponent`, `asISlideComponent`, `computeRelativePath`, `flushPendingBlipImages`, `getImage`, `getLinkPathLong`, `getPresentation`, `getSlide`, `initInternal`, `setBlipImage`, `setImage`, `setLinkPathLong`.
All public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `image`, `linkPathLong`, `presentation`, `slide`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `image` | `IPPImage` | Read | Gets the image. |
| `linkPathLong` | `String` | Read | Gets the link path long. |
| `presentation` | `IPresentation` | Read | Gets the presentation. |
| `slide` | `IBaseSlide` | Read | Gets the slide. |

## Methods

| Signature | Description |
|-----------|-------------|
| `initInternal(blipElement: Element, parentSlide: IBaseSlide, parentPresentation: IPresentation)` | Internal initialisation with the {@code } XML element. |
| `initInternal(blipElement: Element, parentSlide: IBaseSlide)` | Internal initialisation with the {@code } XML element (no presentation context). |
| `initInternal(blipElement: Element, opcPackage: OpcPackage, slidePartName: String, parentSlide: IBaseSlide)` | Internal initialisation with the {@code } XML element and OPC package context. |
| `asIPresentationComponent()` → `IPresentationComponent` |  |
| `getImage()` → `IPPImage` | Returns the image. |
| `setImage(value: IPPImage)` | Sets the image value. |
| `getLinkPathLong()` → `String` | Returns the link path long. |
| `setLinkPathLong(value: String)` | Sets the link path long value. |
| `getPresentation()` → `IPresentation` | Returns the presentation. |
| `getSlide()` → `IBaseSlide` | Returns the slide. |
| `asISlideComponent()` → `ISlideComponent` |  |
| `flushPendingBlipImages(element: Element, parentSlide: IBaseSlide)` | Resolves any pending image references on {@code } elements within the given XML tree. |
| `setBlipImage(blipEl: Element, opcPackage: OpcPackage, slidePartName: String, ppImage: IPPImage)` | Sets the image relationship on a blip element using OPC relationship management. |
| `computeRelativePath(fromDir: String, toPath: String)` → `String` | Computes a relative path from a directory to a target path. |

## See Also

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