IColorFormat

Overview

IColorFormat is a interface in Aspose.Slides FOSS for Java. Inherits from: IFillParamSource.

Represents a color used in a presentation.

Properties

NameTypeAccessDescription
colorTypeColorTypeReadReturns the color definition method.
colorColorReadReturns the resulting color (sRGB).
presetColorPresetColorReadReturns the color preset.
schemeColorSchemeColorReadReturns the color identified by a color scheme.
rintReadReturns the red component of a color (0-255).
gintReadReturns the green component of a color (0-255).
bintReadReturns the blue component of a color (0-255).
floatRfloatReadReturns the red component as a float (0.0-1.0).
floatGfloatReadReturns the green component as a float (0.0-1.0).
floatBfloatReadReturns the blue component as a float (0.0-1.0).
huefloatReadReturns the hue component (0-360).
saturationfloatReadReturns the saturation component (0-100).
luminancefloatReadReturns the luminance component (0-100).

Methods

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).

See Also