IColorFormat — Aspose.Slides FOSS Java API Reference
IColorFormat — Represents a color used in a presentation.
Package: org.aspose.slides.foss
Properties
| Property | Type | Access | Description |
|---|---|---|---|
colorType | ColorType | Read/Write | |
color | Color | Read/Write | |
presetColor | PresetColor | Read/Write | |
schemeColor | SchemeColor | Read/Write | |
r | int | Read/Write | |
g | int | Read/Write | |
b | int | Read/Write | |
floatR | float | Read/Write | |
floatG | float | Read/Write | |
floatB | float | Read/Write | |
hue | float | Read/Write | |
saturation | float | Read/Write | |
luminance | float | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
getColorType() | ColorType | Returns the color definition method. |
setColorType(ColorType value) | void | Sets the color definition method. |
getColor() | Color | Returns the resulting color (sRGB). |
setColor(Color value) | void | Sets the color as an sRGB value, clearing any existing color definition. |
getPresetColor() | PresetColor | Returns the color preset. |
setPresetColor(PresetColor value) | void | Sets the color preset. |
getSchemeColor() | SchemeColor | Returns the color identified by a color scheme. |
setSchemeColor(SchemeColor value) | void | Sets the color identified by a color scheme. |
getR() | int | Returns the red component of a color (0-255). |
setR(int value) | void | Sets the red component of a color (0-255). |
getG() | int | Returns the green component of a color (0-255). |
setG(int value) | void | Sets the green component of a color (0-255). |
getB() | int | Returns the blue component of a color (0-255). |
setB(int value) | void | Sets the blue component of a color (0-255). |
getFloatR() | float | Returns the red component as a float (0. |
setFloatR(float value) | void | Sets the red component as a float (0. |
getFloatG() | float | Returns the green component as a float (0. |
setFloatG(float value) | void | Sets the green component as a float (0. |
getFloatB() | float | Returns the blue component as a float (0. |
setFloatB(float value) | void | Sets the blue component as a float (0. |
getHue() | float | Returns the hue component (0-360). |
setHue(float value) | void | Sets the hue component (0-360). |
getSaturation() | float | Returns the saturation component (0-100). |
setSaturation(float value) | void | Sets the saturation component (0-100). |
getLuminance() | float | Returns the luminance component (0-100). |
setLuminance(float value) | void | Sets the luminance component (0-100). |