Color
Source: aspose.
Represents an ARGB (alpha, red, green, blue) color.
Methods
- equals(obj)
- getA()
- getB()
- getG()
- getR()
- hashCode()
- isEmpty()
- toArgb()
- fromArgb(argb)
- fromArgb(red, green, blue)
- fromArgb(alpha, red, green, blue)
- getAliceBlue()
- getAntiqueWhite()
- getAqua()
- getAquamarine()
- getAzure()
- getBeige()
- getBisque()
- getBlack()
- getBlanchedAlmond()
- getBlue()
- getBlueViolet()
- getBrown()
- getBurlyWood()
- getCadetBlue()
- getChartreuse()
- getChocolate()
- getCoral()
- getCornflowerBlue()
- getCornsilk()
- getCrimson()
- getCyan()
- getDarkBlue()
- getDarkCyan()
- getDarkGoldenrod()
- getDarkGray()
- getDarkGreen()
- getDarkKhaki()
- getDarkMagenta()
- getDarkOliveGreen()
- getDarkOrange()
- getDarkOrchid()
- getDarkRed()
- getDarkSalmon()
- getDarkSeaGreen()
- getDarkSlateBlue()
- getDarkSlateGray()
- getDarkTurquoise()
- getDarkViolet()
- getDeepPink()
- getDeepSkyBlue()
- getDimGray()
- getDodgerBlue()
- getEmpty()
- getFirebrick()
- getFloralWhite()
- getForestGreen()
- getFuchsia()
- getGainsboro()
- getGhostWhite()
- getGold()
- getGoldenrod()
- getGray()
- getGreen()
- getGreenYellow()
- getHoneydew()
- getHotPink()
- getIndianRed()
- getIndigo()
- getIvory()
- getKhaki()
- getLavender()
- getLavenderBlush()
- getLawnGreen()
- getLemonChiffon()
- getLightBlue()
- getLightCoral()
- getLightCyan()
- getLightGoldenrodYellow()
- getLightGray()
- getLightGreen()
- getLightPink()
- getLightSalmon()
- getLightSeaGreen()
- getLightSkyBlue()
- getLightSlateGray()
- getLightSteelBlue()
- getLightYellow()
- getLime()
- getLimeGreen()
- getLinen()
- getMagenta()
- getMaroon()
- getMediumAquamarine()
- getMediumBlue()
- getMediumOrchid()
- getMediumPurple()
- getMediumSeaGreen()
- getMediumSlateBlue()
- getMediumSpringGreen()
- getMediumTurquoise()
- getMediumVioletRed()
- getMidnightBlue()
- getMintCream()
- getMistyRose()
- getMoccasin()
- getNavajoWhite()
- getNavy()
- getOldLace()
- getOlive()
- getOliveDrab()
- getOrange()
- getOrangeRed()
- getOrchid()
- getPaleGoldenrod()
- getPaleGreen()
- getPaleTurquoise()
- getPaleVioletRed()
- getPapayaWhip()
- getPeachPuff()
- getPeru()
- getPink()
- getPlum()
- getPowderBlue()
- getPurple()
- getRed()
- getRosyBrown()
- getRoyalBlue()
- getSaddleBrown()
- getSalmon()
- getSandyBrown()
- getSeaGreen()
- getSeaShell()
- getSienna()
- getSilver()
- getSkyBlue()
- getSlateBlue()
- getSlateGray()
- getSnow()
- getSpringGreen()
- getSteelBlue()
- getTan()
- getTeal()
- getThistle()
- getTomato()
- getTransparent()
- getTurquoise()
- getViolet()
- getWheat()
- getWhite()
- getWhiteSmoke()
- getYellow()
- getYellowGreen()
new Color()
construct function
Methods
equals(obj) → boolean
Tests whether the specified object is a Color object and is equivalent to this object.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
obj |
Object |
|
The object to test. |
- Returns
-
boolean
true if obj is a Color object and equivalent to this Color object; otherwise, false.
getA() → byte
Gets the alpha component value of this Color object.
- Returns
-
byte
The alpha component value of this Color object.
getB() → byte
Gets the blue component value of this Color object.
- Returns
-
byte
The blue component value of this Color object.
getG() → byte
Gets the green component value of this Color object.
- Returns
-
byte
The green component value of this Color object.
getR() → byte
Gets the red component value of this Color object.
- Returns
-
byte
The red component value of this Color object.
hashCode() → Number
Returns a hash code for this Color object.
- Returns
-
Number
An integer value that specifies the hash code for this Color object.
isEmpty() → boolean
Specifies whether this Color object is uninitialized.
- Returns
-
boolean
This property returns true if this color is uninitialized; otherwise, false.
toArgb() → Number
Gets the 32-bit ARGB value of this Color object.
- Returns
-
Number
The 32-bit ARGB value of this Color object.
fromArgb(argb) → Color
Creates a Color object from a 32-bit ARGB value.
Parameter
Name | Type | Optional | Description |
---|---|---|---|
argb |
Number |
|
A value specifying the 32-bit ARGB value. |
- Returns
-
Color
The Color object that this method creates.
fromArgb(red, green, blue) → Color
Creates a Color object from the specified 8-bit color values (red, green, and blue). The alpha value is implicitly 255 (fully opaque). Although this method allows a 32-bit value to be passed for each color component, the value of each component is limited to 8 bits.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
red |
Number |
|
The red component value for the new Color object. Valid values are 0 through 255. |
green |
Number |
|
The green component value for the new Color object. Valid values are 0 through 255. |
blue |
Number |
|
The blue component value for the new Color object. Valid values are 0 through 255. |
- Returns
-
Color
The Color object that this method creates.
fromArgb(alpha, red, green, blue) → Color
Creates a Color object from the four ARGB component (alpha,red, green, and blue) values. Although this method allows a 32-bit value to be passed for each component, the value of each component is limited to 8 bits.
Parameters
Name | Type | Optional | Description |
---|---|---|---|
alpha |
Number |
|
The alpha component. Valid values are 0 through 255. |
red |
Number |
|
The red component. Valid values are 0 through 255. |
green |
Number |
|
The green component. Valid values are 0 through 255. |
blue |
Number |
|
The blue component. Valid values are 0 through 255. |
- Returns
-
Color
The Color object that this method creates.
getAliceBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getAntiqueWhite() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getAqua() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getAquamarine() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getAzure() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBeige() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBisque() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBlack() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBlanchedAlmond() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBlueViolet() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBrown() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getBurlyWood() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCadetBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getChartreuse() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getChocolate() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCoral() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCornflowerBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCornsilk() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCrimson() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getCyan() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkCyan() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkGoldenrod() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkKhaki() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkMagenta() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkOliveGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkOrange() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkOrchid() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkSalmon() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkSeaGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkSlateBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkSlateGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkTurquoise() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDarkViolet() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDeepPink() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDeepSkyBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDimGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getDodgerBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getEmpty() → Color
Get a system-defined empty color.
- Returns
-
Color
A Color object representing a system-defined color.
getFirebrick() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getFloralWhite() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getForestGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getFuchsia() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGainsboro() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGhostWhite() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGold() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGoldenrod() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getGreenYellow() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getHoneydew() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getHotPink() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getIndianRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getIndigo() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getIvory() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getKhaki() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLavender() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLavenderBlush() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLawnGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLemonChiffon() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightCoral() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightCyan() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightGoldenrodYellow() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightPink() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightSalmon() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightSeaGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightSkyBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightSlateGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightSteelBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLightYellow() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLime() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLimeGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getLinen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMagenta() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMaroon() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumAquamarine() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumOrchid() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumPurple() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumSeaGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumSlateBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumSpringGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumTurquoise() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMediumVioletRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMidnightBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMintCream() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMistyRose() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getMoccasin() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getNavajoWhite() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getNavy() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOldLace() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOlive() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOliveDrab() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOrange() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOrangeRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getOrchid() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPaleGoldenrod() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPaleGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPaleTurquoise() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPaleVioletRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPapayaWhip() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPeachPuff() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPeru() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPink() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPlum() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPowderBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getPurple() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getRed() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getRosyBrown() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getRoyalBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSaddleBrown() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSalmon() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSandyBrown() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSeaGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSeaShell() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSienna() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSilver() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSkyBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSlateBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSlateGray() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSnow() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSpringGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getSteelBlue() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getTan() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getTeal() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getThistle() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getTomato() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getTransparent() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getTurquoise() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getViolet() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getWheat() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getWhite() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getWhiteSmoke() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getYellow() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.
getYellowGreen() → Color
Get a system-defined color.
- Returns
-
Color
A Color object representing a system-defined color.