Color — Aspose.Slides FOSS Java API Reference

Color — Immutable value type representing an ARGB color.

Package: org.aspose.slides.foss.drawing


Properties

PropertyTypeAccessDescription
aintRead/Write
rintRead/Write
gintRead/Write
bintRead/Write
emptybooleanRead/Write

Methods

MethodReturnsDescription
a()intGets the alpha component.
getA()intGets the alpha component.
r()intGets the red component.
getR()intGets the red component.
g()intGets the green component.
getG()intGets the green component.
b()intGets the blue component.
getB()intGets the blue component.
fromArgb(int a, int r, int g, int b)ColorCreates a new Color from the specified ARGB components.
fromArgb(int r, int g, int b)ColorCreates a new Color from the specified RGB components with alpha 255.
fromArgb(int argb)ColorCreates a new Color from a packed 32-bit ARGB value.
toArgb()intPacks this color into a 32-bit ARGB integer.
isEmpty()booleanReturns true if this color is empty (all components are zero).
equals(Object obj)boolean
hashCode()int
toString()String

See Also