IColorFormat

General

IColorFormat és una interfície en Aspose.Slides FOSS per Java.

Representa un color utilitzat en una presentació.

Propietats

NameTypeAccessDescription
colorTypeColorTypeReadGets or sets the color definition method
colorColorReadGets or sets the sRGB color
presetColorPresetColorReadGets or sets the preset color
schemeColorSchemeColorReadGets or sets the scheme-based color
rintRead
gintRead
bintRead
floatRfloatReadGets or sets the red component as a float (0.0-1.0)
floatGfloatRead
floatBfloatRead
huefloatRead
saturationfloatReadGets or sets the saturation (0-100)
luminancefloatRead

Mètodes

SignatureDescription
getColorType()ColorTypeReturns the color definition method.
setColorType(value: ColorType)Sets the color definition method.
getColor()ColorReturns the resulting color (sRGB).
setColor(value: Color)Sets the color as an sRGB value, clearing any existing color definition.
getPresetColor()PresetColorReturns the color preset.
setPresetColor(value: PresetColor)Sets the color preset.
getSchemeColor()SchemeColorReturns the color identified by a color scheme.
setSchemeColor(value: SchemeColor)Sets the color identified by a color scheme.
getR()intReturns the red component of a color (0-255).
setR(value: int)Sets the red component of a color (0-255).
getG()intReturns the green component of a color (0-255).
setG(value: int)Sets the green component of a color (0-255).
getB()intReturns the blue component of a color (0-255).
setB(value: int)Sets the blue component of a color (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 component (0-360).
setHue(value: float)Sets the hue component (0-360).
getSaturation()floatReturns the saturation component (0-100).
setSaturation(value: float)Sets the saturation component (0-100).
getLuminance()floatReturns the luminance component (0-100).
setLuminance(value: float)Sets the luminance component (0-100).
 Català