ColorFormat
General
ColorFormat is a class in Aspose.Slides FOSS for Java.
Inherits from: IColorFormat, IFillParamSource.
ColorFormat és una classe en Aspose.Slides FOSS per a Java. És heretat de: ゚IColorFormat⌒, ∂IFillParamSource}⌒ .
Representa un color utilitzat en una presentació.
Propietats
| Name | Type | Access | Description |
|---|---|---|---|
colorType | ColorType | Read | Gets or sets the ColorType of the format |
color | Color | Read | Gets or sets the explicit Color value |
presetColor | PresetColor | Read | Gets or sets the PresetColor |
schemeColor | SchemeColor | Read | |
r | int | Read | Gets or sets the red component (0‑255) |
g | int | Read | Gets or sets the green component (0‑255) |
b | int | Read | Gets or sets the blue component (0‑255) |
floatR | float | Read | |
floatG | float | Read | |
floatB | float | Read | |
hue | float | Read | Gets or sets the hue in degrees |
saturation | float | Read | Gets or sets the saturation (0‑1) |
luminance | float | Read |
Mètodes
| Signature | Description |
|---|---|
ColorFormat(parentElement: Element, saveCallback: Runnable) | Creates a new ColorFormat backed by the given parent XML element. |
ColorFormat(parentElement: Element) | Creates a new ColorFormat backed by the given parent XML element with no save callback. |
getColorType() → ColorType | Returns the current ColorType of the format |
setColorType(value: ColorType) | Sets the ColorType for the format |
getColor() → Color | Returns the explicit Color value if set |
setColor(value: Color) | Assigns an explicit Color value |
getPresetColor() → PresetColor | Returns the associated PresetColor |
setPresetColor(value: PresetColor) | Assigns a PresetColor |
getSchemeColor() → SchemeColor | Returns the linked SchemeColor |
setSchemeColor(value: SchemeColor) | Assigns a SchemeColor |
getR() → int | Returns the red component as an integer (0‑255) |
setR(value: int) | Sets the red component (0‑255) |
getG() → int | Returns the green component as an integer (0‑255) |
setG(value: int) | Sets the green component (0‑255) |
getB() → int | Returns the blue component as an integer (0‑255) |
setB(value: int) | Sets the blue component (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 value in degrees |
setHue(value: float) | Sets the hue in degrees |
getSaturation() → float | Returns the saturation level (0‑1) |
setSaturation(value: float) | Sets the saturation (0‑1) |
getLuminance() → float | Returns the luminance level (0‑1) |
setLuminance(value: float) | Sets the luminance (0‑1) |