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

# IColorFormat

## Overview

`IColorFormat` is an interface in Aspose.Slides FOSS for Java.
Inherits from: `IFillParamSource`.

Represents a color used in a presentation.

This interface declares 26 methods for IColorFormat objects in Java programs.
Available methods include: `getB`, `getColor`, `getColorType`, `getFloatB`, `getFloatG`, `getFloatR`, `getG`, `getHue`, `getLuminance`, `getPresetColor`, `getR`, `getSaturation`, and 14 additional methods.
Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package.
Properties: `b`, `color`, `colorType`, `floatB`, `floatG`, `floatR`, and 7 more.

## Properties

| Name | Type | Access | Description |
|------|------|--------|-------------|
| `colorType` | `ColorType` | Read/Write | Returns the color definition method. |
| `color` | `Color` | Read/Write | Returns the resulting color (sRGB). |
| `presetColor` | `PresetColor` | Read/Write | Returns the color preset. |
| `schemeColor` | `SchemeColor` | Read/Write | Returns the color identified by a color scheme. |
| `r` | `int` | Read/Write | Returns the red component of a color (0-255). |
| `g` | `int` | Read/Write | Returns the green component of a color (0-255). |
| `b` | `int` | Read/Write | Returns the blue component of a color (0-255). |
| `floatR` | `float` | Read/Write | Returns the red component as a float (0.0-1.0). |
| `floatG` | `float` | Read/Write | Returns the green component as a float (0.0-1.0). |
| `floatB` | `float` | Read/Write | Returns the blue component as a float (0.0-1.0). |
| `hue` | `float` | Read/Write | Returns the hue component (0-360). |
| `saturation` | `float` | Read/Write | Returns the saturation component (0-100). |
| `luminance` | `float` | Read/Write | Returns the luminance component (0-100). |

## Methods

| Signature | Description |
|-----------|-------------|
| `getColorType()` → `ColorType` | Returns the color definition method. |
| `setColorType(value: ColorType)` | Sets the color definition method. |
| `getColor()` → `Color` | Returns the resulting color (sRGB). |
| `setColor(value: Color)` | Sets the color as an sRGB value, clearing any existing color definition. |
| `getPresetColor()` → `PresetColor` | Returns the color preset. |
| `setPresetColor(value: PresetColor)` | Sets the color preset. |
| `getSchemeColor()` → `SchemeColor` | Returns the color identified by a color scheme. |
| `setSchemeColor(value: SchemeColor)` | Sets the color identified by a color scheme. |
| `getR()` → `int` | Returns the red component of a color (0-255). |
| `setR(value: int)` | Sets the red component of a color (0-255). |
| `getG()` → `int` | Returns the green component of a color (0-255). |
| `setG(value: int)` | Sets the green component of a color (0-255). |
| `getB()` → `int` | Returns the blue component of a color (0-255). |
| `setB(value: int)` | Sets the blue component of a color (0-255). |
| `getFloatR()` → `float` | Returns the red component as a float (0.0-1.0). |
| `setFloatR(value: float)` | Sets the red component as a float (0.0-1.0). |
| `getFloatG()` → `float` | Returns the green component as a float (0.0-1.0). |
| `setFloatG(value: float)` | Sets the green component as a float (0.0-1.0). |
| `getFloatB()` → `float` | Returns the blue component as a float (0.0-1.0). |
| `setFloatB(value: float)` | Sets the blue component as a float (0.0-1.0). |
| `getHue()` → `float` | Returns the hue component (0-360). |
| `setHue(value: float)` | Sets the hue component (0-360). |
| `getSaturation()` → `float` | Returns the saturation component (0-100). |
| `setSaturation(value: float)` | Sets the saturation component (0-100). |
| `getLuminance()` → `float` | Returns the luminance component (0-100). |
| `setLuminance(value: float)` | Sets the luminance component (0-100). |

## See Also

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