IColorFormat

Overview

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

Represents a color used in a presentation.

This interface declares 26 methods for IColorFormat objects in Java programs. Available methods include: getB, getColor, getColorType, getFloatB, getFloatG, getFloatR, getG, getHue, getLuminance, getPresetColor, getR, getSaturation, and 14 additional methods. Public members are accessible to any Java application after installing the Aspose.Slides FOSS for Java package. Properties: b, color, colorType, floatB, floatG, floatR, and 7 more.

Properties

NameTypeAccessDescription
colorTypeColorTypeRead/WriteReturns the color definition method.
colorColorRead/WriteReturns the resulting color (sRGB).
presetColorPresetColorRead/WriteReturns the color preset.
schemeColorSchemeColorRead/WriteReturns the color identified by a color scheme.
rintRead/WriteReturns the red component of a color (0-255).
gintRead/WriteReturns the green component of a color (0-255).
bintRead/WriteReturns the blue component of a color (0-255).
floatRfloatRead/WriteReturns the red component as a float (0.0-1.0).
floatGfloatRead/WriteReturns the green component as a float (0.0-1.0).
floatBfloatRead/WriteReturns the blue component as a float (0.0-1.0).
huefloatRead/WriteReturns the hue component (0-360).
saturationfloatRead/WriteReturns the saturation component (0-100).
luminancefloatRead/WriteReturns 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

 English