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 provides 28 methods for working with ColorFormat objects in Java programs. Available methods include: ColorFormat, getB, getColor, getColorType, getFloatB, getFloatG, getFloatR, getG, getHue, getLuminance, getPresetColor, getR, and 15 additional methods. All 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
colorTypeColorTypeReadGets the color type.
colorColorReadGets the color.
presetColorPresetColorReadGets the preset color.
schemeColorSchemeColorReadGets the scheme color.
rintReadGets the r.
gintReadGets the g.
bintReadGets the b.
floatRfloatReadGets the float r.
floatGfloatReadGets the float g.
floatBfloatReadGets the float b.
huefloatReadGets the hue.
saturationfloatReadGets the saturation.
luminancefloatReadGets 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