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

NameTypeAccessDescription
abyteReadReturns the a.
rbyteReadReturns the r.
gbyteReadReturns the g.
bbyteReadReturns the b.
emptyColorReadReturns the empty (transparent black) color.

Methods

SignatureDescription
Color(a: byte, r: byte, g: byte, b: byte)Initializes a new Color instance.
getA()byteReturns the a.
getR()byteReturns the r.
getG()byteReturns the g.
getB()byteReturns the b.
getEmpty()ColorReturns the empty (transparent black) color.
fromArgb(a: int, r: int, g: int, b: int)ColorProcesses from argb.
equals(obj: Object)booleanCompares this instance with the provided value.
hashCode()intIndicates whether this instance has h code.

See Also

 English