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

NameTypeAccessDescription
colorTypeColorTypeReadGets or sets the ColorType of the format
colorColorReadGets or sets the explicit Color value
presetColorPresetColorReadGets or sets the PresetColor
schemeColorSchemeColorRead
rintReadGets or sets the red component (0‑255)
gintReadGets or sets the green component (0‑255)
bintReadGets or sets the blue component (0‑255)
floatRfloatRead
floatGfloatRead
floatBfloatRead
huefloatReadGets or sets the hue in degrees
saturationfloatReadGets or sets the saturation (0‑1)
luminancefloatRead

Mètodes

SignatureDescription
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()ColorTypeReturns the current ColorType of the format
setColorType(value: ColorType)Sets the ColorType for the format
getColor()ColorReturns the explicit Color value if set
setColor(value: Color)Assigns an explicit Color value
getPresetColor()PresetColorReturns the associated PresetColor
setPresetColor(value: PresetColor)Assigns a PresetColor
getSchemeColor()SchemeColorReturns the linked SchemeColor
setSchemeColor(value: SchemeColor)Assigns a SchemeColor
getR()intReturns the red component as an integer (0‑255)
setR(value: int)Sets the red component (0‑255)
getG()intReturns the green component as an integer (0‑255)
setG(value: int)Sets the green component (0‑255)
getB()intReturns the blue component as an integer (0‑255)
setB(value: int)Sets the blue component (0‑255)
getFloatR()floatReturns 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()floatReturns 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()floatReturns 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()floatReturns the hue value in degrees
setHue(value: float)Sets the hue in degrees
getSaturation()floatReturns the saturation level (0‑1)
setSaturation(value: float)Sets the saturation (0‑1)
getLuminance()floatReturns the luminance level (0‑1)
setLuminance(value: float)Sets the luminance (0‑1)
 Català