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

# IPresetShadow

## Overview

`IPresetShadow` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IImageTransformOperation`.

Represents a Preset Shadow effect.

This interface declares 8 methods for IPresetShadow objects in Java programs.
Available methods include: `asIImageTransformOperation`, `getDirection`, `getDistance`, `getPreset`, `getShadowColor`, `setDirection`, `setDistance`, `setPreset`.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `direction`, `distance`, `preset`, `shadowColor`.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `direction` | `double` | Read/Write | Returns the direction of the shadow in degrees. |
| `distance` | `double` | Read/Write | Returns the distance of the shadow in points. |
| `shadowColor` | `IColorFormat` | Read | Returns the shadow color format. |
| `preset` | `PresetShadowType` | Read/Write | Returns the preset shadow type. |

## Methods

| Signature | Description |
|-----------|-------------|
| `getDirection()` → `double` | Returns the direction of the shadow in degrees. |
| `setDirection(value: double)` | Sets the direction of the shadow in degrees. |
| `getDistance()` → `double` | Returns the distance of the shadow in points. |
| `setDistance(value: double)` | Sets the distance of the shadow in points. |
| `getShadowColor()` → `IColorFormat` | Returns the shadow color format. |
| `getPreset()` → `PresetShadowType` | Returns the preset shadow type. |
| `setPreset(value: PresetShadowType)` | Sets the preset shadow type. |
| `asIImageTransformOperation()` → `IImageTransformOperation` | Returns this instance as {@link IImageTransformOperation}. |

## See Also

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