Color — Aspose.Slides FOSS Java API Reference
Color — Immutable value type representing an ARGB color.
Package: org.aspose.slides.foss.drawing
Properties
| Property | Type | Access | Description |
|---|---|---|---|
a | int | Read/Write | |
r | int | Read/Write | |
g | int | Read/Write | |
b | int | Read/Write | |
empty | boolean | Read/Write |
Methods
| Method | Returns | Description |
|---|---|---|
a() | int | Gets the alpha component. |
getA() | int | Gets the alpha component. |
r() | int | Gets the red component. |
getR() | int | Gets the red component. |
g() | int | Gets the green component. |
getG() | int | Gets the green component. |
b() | int | Gets the blue component. |
getB() | int | Gets the blue component. |
fromArgb(int a, int r, int g, int b) | Color | Creates a new Color from the specified ARGB components. |
fromArgb(int r, int g, int b) | Color | Creates a new Color from the specified RGB components with alpha 255. |
fromArgb(int argb) | Color | Creates a new Color from a packed 32-bit ARGB value. |
toArgb() | int | Packs this color into a 32-bit ARGB integer. |
isEmpty() | boolean | Returns true if this color is empty (all components are zero). |
equals(Object obj) | boolean | |
hashCode() | int | |
toString() | String |