ColorFormat
Panoramica
ColorFormat è una classe in Aspose.Slides FOSS per Java. Eredita da: IColorFormat, IFillParamSource.
Rappresenta un colore utilizzato in una presentazione.
Questa classe fornisce 28 metodi per lavorare con oggetti ColorFormat nei programmi Java. I metodi disponibili includono: ColorFormat, getB, getColor, getColorType, getFloatB, getFloatG, getFloatR, getG, getHue, getLuminance, getPresetColor, getR e 15 metodi aggiuntivi. Tutti i membri pubblici sono accessibili a qualsiasi applicazione Java dopo aver installato il pacchetto Aspose.Slides FOSS per Java. Proprietà: b, color, colorType, floatB, floatG, floatR e 7 altre.
Proprietà
| Nome | Tipo | Accesso | Descrizione |
|---|---|---|---|
colorType | ColorType | Lettura | Ottiene il tipo di colore. |
color | Color | Lettura | Ottiene il colore. |
presetColor | PresetColor | Lettura | Ottiene il colore predefinito. |
schemeColor | SchemeColor | Lettura | Ottiene il colore dello schema. |
r | int | Lettura | Ottiene il r. |
g | int | Lettura | Ottiene il g. |
b | int | Lettura | Ottiene il b. |
floatR | float | Lettura | Ottiene il float r. |
floatG | float | Lettura | Restituisce il float g. |
floatB | float | Lettura | Ottiene il float b. |
hue | float | Lettura | Restituisce la tonalità. |
saturation | float | Lettura | Restituisce la saturazione. |
luminance | float | Lettura | Ottiene la luminanza. |
Metodi
| Firma | Descrizione |
|---|---|
ColorFormat(parentElement: Element, saveCallback: Runnable) | Crea un nuovo ColorFormat supportato dall’elemento genitore XML fornito. |
ColorFormat(parentElement: Element) | Crea un nuovo ColorFormat supportato dall’elemento genitore XML fornito senza callback di salvataggio. |
getColorType() → ColorType | Restituisce il tipo di colore. |
setColorType(value: ColorType) | Imposta il valore del tipo di colore. |
getColor() → Color | Restituisce il colore. |
setColor(value: Color) | Imposta il valore del colore. |
getPresetColor() → PresetColor | Restituisce il colore predefinito. |
setPresetColor(value: PresetColor) | Imposta il valore del colore predefinito. |
getSchemeColor() → SchemeColor | Restituisce il colore dello schema. |
setSchemeColor(value: SchemeColor) | Imposta il valore del colore dello schema. |
getR() → int | Restituisce il r. |
setR(value: int) | Imposta il valore r. |
getG() → int | Restituisce il g. |
setG(value: int) | Imposta il valore g. |
getB() → int | Restituisce il b. |
setB(value: int) | Imposta il valore b. |
getFloatR() → float | Restituisce il float r. |
setFloatR(value: float) | Imposta il valore float r. |
getFloatG() → float | Restituisce il float g. |
setFloatG(value: float) | Imposta il valore float g. |
getFloatB() → float | Restituisce il float b. |
setFloatB(value: float) | Imposta il valore float b. |
getHue() → float | Restituisce la tonalità. |
setHue(value: float) | Imposta il valore della tonalità. |
getSaturation() → float | Restituisce la saturazione. |
setSaturation(value: float) | Imposta il valore di saturazione. |
getLuminance() → float | Restituisce la luminanza. |
setLuminance(value: float) | Imposta il valore della luminanza. |