Color
Overview
Color is a class in Aspose.Cells FOSS for Java.
Represents an ARGB color value.
This class provides 9 methods for working with Color objects in Java programs.
Available methods include: Color, equals, fromArgb, getA, getB, getEmpty, getG, getR, hashCode.
All exported members are accessible to any Java application after installing the Aspose.Cells FOSS for Java package.
Properties: a, b, empty, g, r.
Description
Color is a class in the Aspose.Cells FOSS library for Java that exposes 8 methods and 5 properties for programmatic use.
Core capabilities include: byte; byte; byte. These operations enable developers to integrate color functionality directly into Java applications.
The class also provides the a property (returns the a), the r property (returns the r), the g property (returns the g).
Instances are created through a single constructor that initializes the object with default values.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
a | byte | Read | Returns the a. |
r | byte | Read | Returns the r. |
g | byte | Read | Returns the g. |
b | byte | Read | Returns the b. |
empty | Color | Read | Returns the empty (transparent black) color. |
Methods
| Signature | Description |
|---|---|
Color(a: byte, r: byte, g: byte, b: byte) | Initializes a new Color instance. |
getA() → byte | Returns the a. |
getR() → byte | Returns the r. |
getG() → byte | Returns the g. |
getB() → byte | Returns the b. |
getEmpty() → Color | Returns the empty (transparent black) color. |
fromArgb(a: int, r: int, g: int, b: int) → Color | Processes from argb. |
equals(obj: Object) → boolean | Compares this instance with the provided value. |
hashCode() → int | Indicates whether this instance has h code. |