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.

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