IColorFormat
Overview
IColorFormat is a interface in Aspose.Slides FOSS for Java.
Inherits from: IFillParamSource.
Represents a color used in a presentation.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
colorType | ColorType | Read | Returns the color definition method. |
color | Color | Read | Returns the resulting color (sRGB). |
presetColor | PresetColor | Read | Returns the color preset. |
schemeColor | SchemeColor | Read | Returns the color identified by a color scheme. |
r | int | Read | Returns the red component of a color (0-255). |
g | int | Read | Returns the green component of a color (0-255). |
b | int | Read | Returns the blue component of a color (0-255). |
floatR | float | Read | Returns the red component as a float (0.0-1.0). |
floatG | float | Read | Returns the green component as a float (0.0-1.0). |
floatB | float | Read | Returns the blue component as a float (0.0-1.0). |
hue | float | Read | Returns the hue component (0-360). |
saturation | float | Read | Returns the saturation component (0-100). |
luminance | float | Read | 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). |