ColorFormat

Overview

ColorFormat is a class in Aspose.Slides FOSS for Java. Inherits from: IColorFormat, IFillParamSource.

Represents a color used in a presentation.

This class declares 28 methods for ColorFormat objects in Java programs. Available methods include: ColorFormat, getB, getColor, getColorType, getFloatB, getFloatG, getFloatR, getG, getHue, getLuminance, getPresetColor, getR, and 15 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/WriteGets or sets the color type.
colorColorRead/WriteGets or sets the color.
presetColorPresetColorRead/WriteGets or sets the preset color.
schemeColorSchemeColorRead/WriteGets or sets the scheme color.
rintRead/WriteGets or sets the r.
gintRead/WriteGets or sets the g.
bintRead/WriteGets or sets the b.
floatRfloatRead/WriteGets or sets the float r.
floatGfloatRead/WriteGets or sets the float g.
floatBfloatRead/WriteGets or sets the float b.
huefloatRead/WriteGets or sets the hue.
saturationfloatRead/WriteGets or sets the saturation.
luminancefloatRead/WriteGets or sets the luminance.

Methods

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 color type.
setColorType(value: ColorType)Sets the color type value.
getColor() → ColorReturns the color.
setColor(value: Color)Sets the color value.
getPresetColor() → PresetColorReturns the preset color.
setPresetColor(value: PresetColor)Sets the preset color value.
getSchemeColor() → SchemeColorReturns the scheme color.
setSchemeColor(value: SchemeColor)Sets the scheme color value.
getR() → intReturns the r.
setR(value: int)Sets the r value.
getG() → intReturns the g.
setG(value: int)Sets the g value.
getB() → intReturns the b.
setB(value: int)Sets the b value.
getFloatR() → floatReturns the float r.
setFloatR(value: float)Sets the float r value.
getFloatG() → floatReturns the float g.
setFloatG(value: float)Sets the float g value.
getFloatB() → floatReturns the float b.
setFloatB(value: float)Sets the float b value.
getHue() → floatReturns the hue.
setHue(value: float)Sets the hue value.
getSaturation() → floatReturns the saturation.
setSaturation(value: float)Sets the saturation value.
getLuminance() → floatReturns the luminance.
setLuminance(value: float)Sets the luminance value.

See Also

 English