Color

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.lang.Struct

All Implemented Interfaces: com.aspose.ms.System.IEquatable, java.lang.Cloneable

public class Color extends Struct<Color> implements System.IEquatable<Color>, Cloneable

Represents an ARGB (alpha, red, green, blue) color.

Constructors

ConstructorDescription
Color()

Fields

FieldDescription
EMPTYRepresents a color that is null.

Methods

MethodDescription
getTransparent()Gets a system-defined color.
getAliceBlue()Gets a system-defined color that has an ARGB value of #FFF0F8FF.
getAntiqueWhite()Gets a system-defined color that has an ARGB value of #FFFAEBD7.
getAqua()Gets a system-defined color that has an ARGB value of #FF00FFFF.
getAquamarine()Gets a system-defined color that has an ARGB value of #FF7FFFD4.
getAzure()Gets a system-defined color that has an ARGB value of #FFF0FFFF.
getBeige()Gets a system-defined color that has an ARGB value of #FFF5F5DC.
getBisque()Gets a system-defined color that has an ARGB value of #FFFFE4C4.
getBlack()Gets a system-defined color that has an ARGB value of #FF000000.
getBlanchedAlmond()Gets a system-defined color that has an ARGB value of #FFFFEBCD.
getBlue()Gets a system-defined color that has an ARGB value of #FF0000FF.
getBlueViolet()Gets a system-defined color that has an ARGB value of #FF8A2BE2.
getBrown()Gets a system-defined color that has an ARGB value of #FFA52A2A.
getBurlyWood()Gets a system-defined color that has an ARGB value of #FFDEB887.
getCadetBlue()Gets a system-defined color that has an ARGB value of #FF5F9EA0.
getChartreuse()Gets a system-defined color that has an ARGB value of #FF7FFF00.
getChocolate()Gets a system-defined color that has an ARGB value of #FFD2691E.
getCoral()Gets a system-defined color that has an ARGB value of #FFFF7F50.
getCornflowerBlue()Gets a system-defined color that has an ARGB value of #FF6495ED.
getCornsilk()Gets a system-defined color that has an ARGB value of #FFFFF8DC.
getCrimson()Gets a system-defined color that has an ARGB value of #FFDC143C.
getCyan()Gets a system-defined color that has an ARGB value of #FF00FFFF.
getDarkBlue()Gets a system-defined color that has an ARGB value of #FF00008B.
getDarkCyan()Gets a system-defined color that has an ARGB value of #FF008B8B.
getDarkGoldenrod()Gets a system-defined color that has an ARGB value of #FFB8860B.
getDarkGray()Gets a system-defined color that has an ARGB value of #FFA9A9A9.
getDarkGreen()Gets a system-defined color that has an ARGB value of #FF006400.
getDarkKhaki()Gets a system-defined color that has an ARGB value of #FFBDB76B.
getDarkMagenta()Gets a system-defined color that has an ARGB value of #FF8B008B.
getDarkOliveGreen()Gets a system-defined color that has an ARGB value of #FF556B2F.
getDarkOrange()Gets a system-defined color that has an ARGB value of #FFFF8C00.
getDarkOrchid()Gets a system-defined color that has an ARGB value of #FF9932CC.
getDarkRed()Gets a system-defined color that has an ARGB value of #FF8B0000.
getDarkSalmon()Gets a system-defined color that has an ARGB value of #FFE9967A.
getDarkSeaGreen()Gets a system-defined color that has an ARGB value of #FF8FBC8F.
getDarkSlateBlue()Gets a system-defined color that has an ARGB value of #FF483D8B.
getDarkSlateGray()Gets a system-defined color that has an ARGB value of #FF2F4F4F.
getDarkTurquoise()Gets a system-defined color that has an ARGB value of #FF00CED1.
getDarkViolet()Gets a system-defined color that has an ARGB value of #FF9400D3.
getDeepPink()Gets a system-defined color that has an ARGB value of #FFFF1493.
getDeepSkyBlue()Gets a system-defined color that has an ARGB value of #FF00BFFF.
getDimGray()Gets a system-defined color that has an ARGB value of #FF696969.
getDodgerBlue()Gets a system-defined color that has an ARGB value of #FF1E90FF.
getFirebrick()Gets a system-defined color that has an ARGB value of #FFB22222.
getFloralWhite()Gets a system-defined color that has an ARGB value of #FFFFFAF0.
getForestGreen()Gets a system-defined color that has an ARGB value of #FF228B22.
getFuchsia()Gets a system-defined color that has an ARGB value of #FFFF00FF.
getGainsboro()Gets a system-defined color that has an ARGB value of #FFDCDCDC.
getGhostWhite()Gets a system-defined color that has an ARGB value of #FFF8F8FF.
getGold()Gets a system-defined color that has an ARGB value of #FFFFD700.
getGoldenrod()Gets a system-defined color that has an ARGB value of #FFDAA520.
getGray()Gets a system-defined color that has an ARGB value of #FF808080.
getGreen()Gets a system-defined color that has an ARGB value of #FF008000.
getGreenYellow()Gets a system-defined color that has an ARGB value of #FFADFF2F.
getHoneydew()Gets a system-defined color that has an ARGB value of #FFF0FFF0.
getHotPink()Gets a system-defined color that has an ARGB value of #FFFF69B4.
getIndianRed()Gets a system-defined color that has an ARGB value of #FFCD5C5C.
getIndigo()Gets a system-defined color that has an ARGB value of #FF4B0082.
getIvory()Gets a system-defined color that has an ARGB value of #FFFFFFF0.
getKhaki()Gets a system-defined color that has an ARGB value of #FFF0E68C.
getLavender()Gets a system-defined color that has an ARGB value of #FFE6E6FA.
getLavenderBlush()Gets a system-defined color that has an ARGB value of #FFFFF0F5.
getLawnGreen()Gets a system-defined color that has an ARGB value of #FF7CFC00.
getLemonChiffon()Gets a system-defined color that has an ARGB value of #FFFFFACD.
getLightBlue()Gets a system-defined color that has an ARGB value of #FFADD8E6.
getLightCoral()Gets a system-defined color that has an ARGB value of #FFF08080.
getLightCyan()Gets a system-defined color that has an ARGB value of #FFE0FFFF.
getLightGoldenrodYellow()Gets a system-defined color that has an ARGB value of #FFFAFAD2.
getLightGreen()Gets a system-defined color that has an ARGB value of #FF90EE90.
getLightGray()Gets a system-defined color that has an ARGB value of #FFD3D3D3.
getLightPink()Gets a system-defined color that has an ARGB value of #FFFFB6C1.
getLightSalmon()Gets a system-defined color that has an ARGB value of #FFFFA07A.
getLightSeaGreen()Gets a system-defined color that has an ARGB value of #FF20B2AA.
getLightSkyBlue()Gets a system-defined color that has an ARGB value of #FF87CEFA.
getLightSlateGray()Gets a system-defined color that has an ARGB value of #FF778899.
getLightSteelBlue()Gets a system-defined color that has an ARGB value of #FFB0C4DE.
getLightYellow()Gets a system-defined color that has an ARGB value of #FFFFFFE0.
getLime()Gets a system-defined color that has an ARGB value of #FF00FF00.
getLimeGreen()Gets a system-defined color that has an ARGB value of #FF32CD32.
getLinen()Gets a system-defined color that has an ARGB value of #FFFAF0E6.
getMagenta()Gets a system-defined color that has an ARGB value of #FFFF00FF.
getMaroon()Gets a system-defined color that has an ARGB value of #FF800000.
getMediumAquamarine()Gets a system-defined color that has an ARGB value of #FF66CDAA.
getMediumBlue()Gets a system-defined color that has an ARGB value of #FF0000CD.
getMediumOrchid()Gets a system-defined color that has an ARGB value of #FFBA55D3.
getMediumPurple()Gets a system-defined color that has an ARGB value of #FF9370DB.
getMediumSeaGreen()Gets a system-defined color that has an ARGB value of #FF3CB371.
getMediumSlateBlue()Gets a system-defined color that has an ARGB value of #FF7B68EE.
getMediumSpringGreen()Gets a system-defined color that has an ARGB value of #FF00FA9A.
getMediumTurquoise()Gets a system-defined color that has an ARGB value of #FF48D1CC.
getMediumVioletRed()Gets a system-defined color that has an ARGB value of #FFC71585.
getMidnightBlue()Gets a system-defined color that has an ARGB value of #FF191970.
getMintCream()Gets a system-defined color that has an ARGB value of #FFF5FFFA.
getMistyRose()Gets a system-defined color that has an ARGB value of #FFFFE4E1.
getMoccasin()Gets a system-defined color that has an ARGB value of #FFFFE4B5.
getNavajoWhite()Gets a system-defined color that has an ARGB value of #FFFFDEAD.
getNavy()Gets a system-defined color that has an ARGB value of #FF000080.
getOldLace()Gets a system-defined color that has an ARGB value of #FFFDF5E6.
getOlive()Gets a system-defined color that has an ARGB value of #FF808000.
getOliveDrab()Gets a system-defined color that has an ARGB value of #FF6B8E23.
getOrange()Gets a system-defined color that has an ARGB value of #FFFFA500.
getOrangeRed()Gets a system-defined color that has an ARGB value of #FFFF4500.
getOrchid()Gets a system-defined color that has an ARGB value of #FFDA70D6.
getPaleGoldenrod()Gets a system-defined color that has an ARGB value of #FFEEE8AA.
getPaleGreen()Gets a system-defined color that has an ARGB value of #FF98FB98.
getPaleTurquoise()Gets a system-defined color that has an ARGB value of #FFAFEEEE.
getPaleVioletRed()Gets a system-defined color that has an ARGB value of #FFDB7093.
getPapayaWhip()Gets a system-defined color that has an ARGB value of #FFFFEFD5.
getPeachPuff()Gets a system-defined color that has an ARGB value of #FFFFDAB9.
getPeru()Gets a system-defined color that has an ARGB value of #FFCD853F.
getPink()Gets a system-defined color that has an ARGB value of #FFFFC0CB.
getPlum()Gets a system-defined color that has an ARGB value of #FFDDA0DD.
getPowderBlue()Gets a system-defined color that has an ARGB value of #FFB0E0E6.
getPurple()Gets a system-defined color that has an ARGB value of #FF800080.
getRed()Gets a system-defined color that has an ARGB value of #FFFF0000.
getRosyBrown()Gets a system-defined color that has an ARGB value of #FFBC8F8F.
getRoyalBlue()Gets a system-defined color that has an ARGB value of #FF4169E1.
getSaddleBrown()Gets a system-defined color that has an ARGB value of #FF8B4513.
getSalmon()Gets a system-defined color that has an ARGB value of #FFFA8072.
getSandyBrown()Gets a system-defined color that has an ARGB value of #FFF4A460.
getSeaGreen()Gets a system-defined color that has an ARGB value of #FF2E8B57.
getSeaShell()Gets a system-defined color that has an ARGB value of #FFFFF5EE.
getSienna()Gets a system-defined color that has an ARGB value of #FFA0522D.
getSilver()Gets a system-defined color that has an ARGB value of #FFC0C0C0.
getSkyBlue()Gets a system-defined color that has an ARGB value of #FF87CEEB.
getSlateBlue()Gets a system-defined color that has an ARGB value of #FF6A5ACD.
getSlateGray()Gets a system-defined color that has an ARGB value of #FF708090.
getSnow()Gets a system-defined color that has an ARGB value of #FFFFFAFA.
getSpringGreen()Gets a system-defined color that has an ARGB value of #FF00FF7F.
getSteelBlue()Gets a system-defined color that has an ARGB value of #FF4682B4.
getTan()Gets a system-defined color that has an ARGB value of #FFD2B48C.
getTeal()Gets a system-defined color that has an ARGB value of #FF008080.
getThistle()Gets a system-defined color that has an ARGB value of #FFD8BFD8.
getTomato()Gets a system-defined color that has an ARGB value of #FFFF6347.
getTurquoise()Gets a system-defined color that has an ARGB value of #FF40E0D0.
getViolet()Gets a system-defined color that has an ARGB value of #FFEE82EE.
getWheat()Gets a system-defined color that has an ARGB value of #FFF5DEB3.
getWhite()Gets a system-defined color that has an ARGB value of #FFFFFFFF.
getWhiteSmoke()Gets a system-defined color that has an ARGB value of #FFF5F5F5.
getYellow()Gets a system-defined color that has an ARGB value of #FFFFFF00.
getYellowGreen()Gets a system-defined color that has an ARGB value of #FF9ACD32.
getA()Gets the alpha component value of this Color structure.
getR()Gets the red component value of this Color structure.
getG()Gets the green component value of this Color structure.
getB()Gets the blue component value of this Color structure.
isKnownColor()Gets a value indicating whether this Color structure is a predefined color.
isEmpty()Gets a value indicating whether this Color structure is uninitialized.
isNamedColor()Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.
isSystemColor()Gets a value indicating whether this Color structure is a system color.
getName()Gets the name of this Color.
fromArgb(int argb)Creates a Color structure from a 32-bit ARGB value.
fromArgb(int alpha, Color baseColor)Creates a Color structure from the specified Color structure, but with the new specified alpha value.
fromArgb(int red, int green, int blue)Creates a Color structure from the specified 8-bit color values (red, green, and blue).
fromArgb(int alpha, int red, int green, int blue)Creates a Color structure from the four ARGB component (alpha, red, green, and blue) values.
fromKnownColor(int color)Creates a Color structure from the specified predefined color.
fromName(String name)Creates a Color structure from the specified name of a predefined color.
op_Equality(Color left, Color right)Tests whether two specified Color structures are equivalent.
op_Inequality(Color left, Color right)Tests whether two specified Color structures are different.
equals(Color other)Tests whether the specified color is equivalent to this color.
equals(Object obj)Tests whether the specified object is equivalent to this color.
toArgb()Gets the 32-bit ARGB value of this Color structure.
getBrightness()Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.
getHue()Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.
getSaturation()Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.
toKnownColor()Gets the KnownColor value of this Color structure.
toString()Returns a String that represents this instance.
hashCode()Returns a hash code for this instance.
isEquals(Color obj1, Color obj2)
getEmpty()
CloneTo(Color that)
Clone()

Color()

public Color()

EMPTY

public static final Color EMPTY

Represents a color that is null.

getTransparent()

public static Color getTransparent()

Gets a system-defined color.

Returns: Color - A Color representing a system-defined color. 1

getAliceBlue()

public static Color getAliceBlue()

Gets a system-defined color that has an ARGB value of #FFF0F8FF.

Returns: Color - A Color representing a system-defined color. 1

getAntiqueWhite()

public static Color getAntiqueWhite()

Gets a system-defined color that has an ARGB value of #FFFAEBD7.

Returns: Color - A Color representing a system-defined color. 1

getAqua()

public static Color getAqua()

Gets a system-defined color that has an ARGB value of #FF00FFFF.

Returns: Color - A Color representing a system-defined color. 1

getAquamarine()

public static Color getAquamarine()

Gets a system-defined color that has an ARGB value of #FF7FFFD4.

Returns: Color - A Color representing a system-defined color. 1

getAzure()

public static Color getAzure()

Gets a system-defined color that has an ARGB value of #FFF0FFFF.

Returns: Color - A Color representing a system-defined color. 1

getBeige()

public static Color getBeige()

Gets a system-defined color that has an ARGB value of #FFF5F5DC.

Returns: Color - A Color representing a system-defined color. 1

getBisque()

public static Color getBisque()

Gets a system-defined color that has an ARGB value of #FFFFE4C4.

Returns: Color - A Color representing a system-defined color. 1

getBlack()

public static Color getBlack()

Gets a system-defined color that has an ARGB value of #FF000000.

Returns: Color - A Color representing a system-defined color. 1

getBlanchedAlmond()

public static Color getBlanchedAlmond()

Gets a system-defined color that has an ARGB value of #FFFFEBCD.

Returns: Color - A Color representing a system-defined color. 1

getBlue()

public static Color getBlue()

Gets a system-defined color that has an ARGB value of #FF0000FF.

Returns: Color - A Color representing a system-defined color. 1

getBlueViolet()

public static Color getBlueViolet()

Gets a system-defined color that has an ARGB value of #FF8A2BE2.

Returns: Color - A Color representing a system-defined color. 1

getBrown()

public static Color getBrown()

Gets a system-defined color that has an ARGB value of #FFA52A2A.

Returns: Color - A Color representing a system-defined color. 1

getBurlyWood()

public static Color getBurlyWood()

Gets a system-defined color that has an ARGB value of #FFDEB887.

Returns: Color - A Color representing a system-defined color. 1

getCadetBlue()

public static Color getCadetBlue()

Gets a system-defined color that has an ARGB value of #FF5F9EA0.

Returns: Color - A Color representing a system-defined color. 1

getChartreuse()

public static Color getChartreuse()

Gets a system-defined color that has an ARGB value of #FF7FFF00.

Returns: Color - A Color representing a system-defined color. 1

getChocolate()

public static Color getChocolate()

Gets a system-defined color that has an ARGB value of #FFD2691E.

Returns: Color - A Color representing a system-defined color. 1

getCoral()

public static Color getCoral()

Gets a system-defined color that has an ARGB value of #FFFF7F50.

Returns: Color - A Color representing a system-defined color. 1

getCornflowerBlue()

public static Color getCornflowerBlue()

Gets a system-defined color that has an ARGB value of #FF6495ED.

Returns: Color - A Color representing a system-defined color. 1

getCornsilk()

public static Color getCornsilk()

Gets a system-defined color that has an ARGB value of #FFFFF8DC.

Returns: Color - A Color representing a system-defined color. 1

getCrimson()

public static Color getCrimson()

Gets a system-defined color that has an ARGB value of #FFDC143C.

Returns: Color - A Color representing a system-defined color. 1

getCyan()

public static Color getCyan()

Gets a system-defined color that has an ARGB value of #FF00FFFF.

Returns: Color - A Color representing a system-defined color. 1

getDarkBlue()

public static Color getDarkBlue()

Gets a system-defined color that has an ARGB value of #FF00008B.

Returns: Color - A Color representing a system-defined color. 1

getDarkCyan()

public static Color getDarkCyan()

Gets a system-defined color that has an ARGB value of #FF008B8B.

Returns: Color - A Color representing a system-defined color. 1

getDarkGoldenrod()

public static Color getDarkGoldenrod()

Gets a system-defined color that has an ARGB value of #FFB8860B.

Returns: Color - A Color representing a system-defined color. 1

getDarkGray()

public static Color getDarkGray()

Gets a system-defined color that has an ARGB value of #FFA9A9A9.

Returns: Color - A Color representing a system-defined color. 1

getDarkGreen()

public static Color getDarkGreen()

Gets a system-defined color that has an ARGB value of #FF006400.

Returns: Color - A Color representing a system-defined color. 1

getDarkKhaki()

public static Color getDarkKhaki()

Gets a system-defined color that has an ARGB value of #FFBDB76B.

Returns: Color - A Color representing a system-defined color. 1

getDarkMagenta()

public static Color getDarkMagenta()

Gets a system-defined color that has an ARGB value of #FF8B008B.

Returns: Color - A Color representing a system-defined color. 1

getDarkOliveGreen()

public static Color getDarkOliveGreen()

Gets a system-defined color that has an ARGB value of #FF556B2F.

Returns: Color - A Color representing a system-defined color. 1

getDarkOrange()

public static Color getDarkOrange()

Gets a system-defined color that has an ARGB value of #FFFF8C00.

Returns: Color - A Color representing a system-defined color. 1

getDarkOrchid()

public static Color getDarkOrchid()

Gets a system-defined color that has an ARGB value of #FF9932CC.

Returns: Color - A Color representing a system-defined color. 1

getDarkRed()

public static Color getDarkRed()

Gets a system-defined color that has an ARGB value of #FF8B0000.

Returns: Color - A Color representing a system-defined color. 1

getDarkSalmon()

public static Color getDarkSalmon()

Gets a system-defined color that has an ARGB value of #FFE9967A.

Returns: Color - A Color representing a system-defined color. 1

getDarkSeaGreen()

public static Color getDarkSeaGreen()

Gets a system-defined color that has an ARGB value of #FF8FBC8F.

Returns: Color - A Color representing a system-defined color. 1

getDarkSlateBlue()

public static Color getDarkSlateBlue()

Gets a system-defined color that has an ARGB value of #FF483D8B.

Returns: Color - A Color representing a system-defined color. 1

getDarkSlateGray()

public static Color getDarkSlateGray()

Gets a system-defined color that has an ARGB value of #FF2F4F4F.

Returns: Color - A Color representing a system-defined color. 1

getDarkTurquoise()

public static Color getDarkTurquoise()

Gets a system-defined color that has an ARGB value of #FF00CED1.

Returns: Color - A Color representing a system-defined color. 1

getDarkViolet()

public static Color getDarkViolet()

Gets a system-defined color that has an ARGB value of #FF9400D3.

Returns: Color - A Color representing a system-defined color. 1

getDeepPink()

public static Color getDeepPink()

Gets a system-defined color that has an ARGB value of #FFFF1493.

Returns: Color - A Color representing a system-defined color. 1

getDeepSkyBlue()

public static Color getDeepSkyBlue()

Gets a system-defined color that has an ARGB value of #FF00BFFF.

Returns: Color - A Color representing a system-defined color. 1

getDimGray()

public static Color getDimGray()

Gets a system-defined color that has an ARGB value of #FF696969.

Returns: Color - A Color representing a system-defined color. 1

getDodgerBlue()

public static Color getDodgerBlue()

Gets a system-defined color that has an ARGB value of #FF1E90FF.

Returns: Color - A Color representing a system-defined color. 1

getFirebrick()

public static Color getFirebrick()

Gets a system-defined color that has an ARGB value of #FFB22222.

Returns: Color - A Color representing a system-defined color. 1

getFloralWhite()

public static Color getFloralWhite()

Gets a system-defined color that has an ARGB value of #FFFFFAF0.

Returns: Color - A Color representing a system-defined color. 1

getForestGreen()

public static Color getForestGreen()

Gets a system-defined color that has an ARGB value of #FF228B22.

Returns: Color - A Color representing a system-defined color. 1

getFuchsia()

public static Color getFuchsia()

Gets a system-defined color that has an ARGB value of #FFFF00FF.

Returns: Color - A Color representing a system-defined color. 1

getGainsboro()

public static Color getGainsboro()

Gets a system-defined color that has an ARGB value of #FFDCDCDC.

Returns: Color - A Color representing a system-defined color. 1

getGhostWhite()

public static Color getGhostWhite()

Gets a system-defined color that has an ARGB value of #FFF8F8FF.

Returns: Color - A Color representing a system-defined color. 1

getGold()

public static Color getGold()

Gets a system-defined color that has an ARGB value of #FFFFD700.

Returns: Color - A Color representing a system-defined color. 1

getGoldenrod()

public static Color getGoldenrod()

Gets a system-defined color that has an ARGB value of #FFDAA520.

Returns: Color - A Color representing a system-defined color. 1

getGray()

public static Color getGray()

Gets a system-defined color that has an ARGB value of #FF808080.

Returns: Color - A Color strcture representing a system-defined color. 1

getGreen()

public static Color getGreen()

Gets a system-defined color that has an ARGB value of #FF008000.

Returns: Color - A Color representing a system-defined color. 1

getGreenYellow()

public static Color getGreenYellow()

Gets a system-defined color that has an ARGB value of #FFADFF2F.

Returns: Color - A Color representing a system-defined color. 1

getHoneydew()

public static Color getHoneydew()

Gets a system-defined color that has an ARGB value of #FFF0FFF0.

Returns: Color - A Color representing a system-defined color. 1

getHotPink()

public static Color getHotPink()

Gets a system-defined color that has an ARGB value of #FFFF69B4.

Returns: Color - A Color representing a system-defined color. 1

getIndianRed()

public static Color getIndianRed()

Gets a system-defined color that has an ARGB value of #FFCD5C5C.

Returns: Color - A Color representing a system-defined color. 1

getIndigo()

public static Color getIndigo()

Gets a system-defined color that has an ARGB value of #FF4B0082.

Returns: Color - A Color representing a system-defined color. 1

getIvory()

public static Color getIvory()

Gets a system-defined color that has an ARGB value of #FFFFFFF0.

Returns: Color - A Color representing a system-defined color. 1

getKhaki()

public static Color getKhaki()

Gets a system-defined color that has an ARGB value of #FFF0E68C.

Returns: Color - A Color representing a system-defined color. 1

getLavender()

public static Color getLavender()

Gets a system-defined color that has an ARGB value of #FFE6E6FA.

Returns: Color - A Color representing a system-defined color. 1

getLavenderBlush()

public static Color getLavenderBlush()

Gets a system-defined color that has an ARGB value of #FFFFF0F5.

Returns: Color - A Color representing a system-defined color. 1

getLawnGreen()

public static Color getLawnGreen()

Gets a system-defined color that has an ARGB value of #FF7CFC00.

Returns: Color - A Color representing a system-defined color. 1

getLemonChiffon()

public static Color getLemonChiffon()

Gets a system-defined color that has an ARGB value of #FFFFFACD.

Returns: Color - A Color representing a system-defined color. 1

getLightBlue()

public static Color getLightBlue()

Gets a system-defined color that has an ARGB value of #FFADD8E6.

Returns: Color - A Color representing a system-defined color. 1

getLightCoral()

public static Color getLightCoral()

Gets a system-defined color that has an ARGB value of #FFF08080.

Returns: Color - A Color representing a system-defined color. 1

getLightCyan()

public static Color getLightCyan()

Gets a system-defined color that has an ARGB value of #FFE0FFFF.

Returns: Color - A Color representing a system-defined color. 1

getLightGoldenrodYellow()

public static Color getLightGoldenrodYellow()

Gets a system-defined color that has an ARGB value of #FFFAFAD2.

Returns: Color - A Color representing a system-defined color. 1

getLightGreen()

public static Color getLightGreen()

Gets a system-defined color that has an ARGB value of #FF90EE90.

Returns: Color - A Color representing a system-defined color. 1

getLightGray()

public static Color getLightGray()

Gets a system-defined color that has an ARGB value of #FFD3D3D3.

Returns: Color - A Color representing a system-defined color. 1

getLightPink()

public static Color getLightPink()

Gets a system-defined color that has an ARGB value of #FFFFB6C1.

Returns: Color - A Color representing a system-defined color. 1

getLightSalmon()

public static Color getLightSalmon()

Gets a system-defined color that has an ARGB value of #FFFFA07A.

Returns: Color - A Color representing a system-defined color. 1

getLightSeaGreen()

public static Color getLightSeaGreen()

Gets a system-defined color that has an ARGB value of #FF20B2AA.

Returns: Color - A Color representing a system-defined color. 1

getLightSkyBlue()

public static Color getLightSkyBlue()

Gets a system-defined color that has an ARGB value of #FF87CEFA.

Returns: Color - A Color representing a system-defined color. 1

getLightSlateGray()

public static Color getLightSlateGray()

Gets a system-defined color that has an ARGB value of #FF778899.

Returns: Color - A Color representing a system-defined color. 1

getLightSteelBlue()

public static Color getLightSteelBlue()

Gets a system-defined color that has an ARGB value of #FFB0C4DE.

Returns: Color - A Color representing a system-defined color. 1

getLightYellow()

public static Color getLightYellow()

Gets a system-defined color that has an ARGB value of #FFFFFFE0.

Returns: Color - A Color representing a system-defined color. 1

getLime()

public static Color getLime()

Gets a system-defined color that has an ARGB value of #FF00FF00.

Returns: Color - A Color representing a system-defined color. 1

getLimeGreen()

public static Color getLimeGreen()

Gets a system-defined color that has an ARGB value of #FF32CD32.

Returns: Color - A Color representing a system-defined color. 1

getLinen()

public static Color getLinen()

Gets a system-defined color that has an ARGB value of #FFFAF0E6.

Returns: Color - A Color representing a system-defined color. 1

getMagenta()

public static Color getMagenta()

Gets a system-defined color that has an ARGB value of #FFFF00FF.

Returns: Color - A Color representing a system-defined color. 1

getMaroon()

public static Color getMaroon()

Gets a system-defined color that has an ARGB value of #FF800000.

Returns: Color - A Color representing a system-defined color. 1

getMediumAquamarine()

public static Color getMediumAquamarine()

Gets a system-defined color that has an ARGB value of #FF66CDAA.

Returns: Color - A Color representing a system-defined color. 1

getMediumBlue()

public static Color getMediumBlue()

Gets a system-defined color that has an ARGB value of #FF0000CD.

Returns: Color - A Color representing a system-defined color. 1

getMediumOrchid()

public static Color getMediumOrchid()

Gets a system-defined color that has an ARGB value of #FFBA55D3.

Returns: Color - A Color representing a system-defined color. 1

getMediumPurple()

public static Color getMediumPurple()

Gets a system-defined color that has an ARGB value of #FF9370DB.

Returns: Color - A Color representing a system-defined color. 1

getMediumSeaGreen()

public static Color getMediumSeaGreen()

Gets a system-defined color that has an ARGB value of #FF3CB371.

Returns: Color - A Color representing a system-defined color. 1

getMediumSlateBlue()

public static Color getMediumSlateBlue()

Gets a system-defined color that has an ARGB value of #FF7B68EE.

Returns: Color - A Color representing a system-defined color. 1

getMediumSpringGreen()

public static Color getMediumSpringGreen()

Gets a system-defined color that has an ARGB value of #FF00FA9A.

Returns: Color - A Color representing a system-defined color. 1

getMediumTurquoise()

public static Color getMediumTurquoise()

Gets a system-defined color that has an ARGB value of #FF48D1CC.

Returns: Color - A Color representing a system-defined color. 1

getMediumVioletRed()

public static Color getMediumVioletRed()

Gets a system-defined color that has an ARGB value of #FFC71585.

Returns: Color - A Color representing a system-defined color. 1

getMidnightBlue()

public static Color getMidnightBlue()

Gets a system-defined color that has an ARGB value of #FF191970.

Returns: Color - A Color representing a system-defined color. 1

getMintCream()

public static Color getMintCream()

Gets a system-defined color that has an ARGB value of #FFF5FFFA.

Returns: Color - A Color representing a system-defined color. 1

getMistyRose()

public static Color getMistyRose()

Gets a system-defined color that has an ARGB value of #FFFFE4E1.

Returns: Color - A Color representing a system-defined color. 1

getMoccasin()

public static Color getMoccasin()

Gets a system-defined color that has an ARGB value of #FFFFE4B5.

Returns: Color - A Color representing a system-defined color. 1

getNavajoWhite()

public static Color getNavajoWhite()

Gets a system-defined color that has an ARGB value of #FFFFDEAD.

Returns: Color - A Color representing a system-defined color. 1

getNavy()

public static Color getNavy()

Gets a system-defined color that has an ARGB value of #FF000080.

Returns: Color - A Color representing a system-defined color. 1

getOldLace()

public static Color getOldLace()

Gets a system-defined color that has an ARGB value of #FFFDF5E6.

Returns: Color - A Color representing a system-defined color. 1

getOlive()

public static Color getOlive()

Gets a system-defined color that has an ARGB value of #FF808000.

Returns: Color - A Color representing a system-defined color. 1

getOliveDrab()

public static Color getOliveDrab()

Gets a system-defined color that has an ARGB value of #FF6B8E23.

Returns: Color - A Color representing a system-defined color. 1

getOrange()

public static Color getOrange()

Gets a system-defined color that has an ARGB value of #FFFFA500.

Returns: Color - A Color representing a system-defined color. 1

getOrangeRed()

public static Color getOrangeRed()

Gets a system-defined color that has an ARGB value of #FFFF4500.

Returns: Color - A Color representing a system-defined color. 1

getOrchid()

public static Color getOrchid()

Gets a system-defined color that has an ARGB value of #FFDA70D6.

Returns: Color - A Color representing a system-defined color. 1

getPaleGoldenrod()

public static Color getPaleGoldenrod()

Gets a system-defined color that has an ARGB value of #FFEEE8AA.

Returns: Color - A Color representing a system-defined color. 1

getPaleGreen()

public static Color getPaleGreen()

Gets a system-defined color that has an ARGB value of #FF98FB98.

Returns: Color - A Color representing a system-defined color. 1

getPaleTurquoise()

public static Color getPaleTurquoise()

Gets a system-defined color that has an ARGB value of #FFAFEEEE.

Returns: Color - A Color representing a system-defined color. 1

getPaleVioletRed()

public static Color getPaleVioletRed()

Gets a system-defined color that has an ARGB value of #FFDB7093.

Returns: Color - A Color representing a system-defined color. 1

getPapayaWhip()

public static Color getPapayaWhip()

Gets a system-defined color that has an ARGB value of #FFFFEFD5.

Returns: Color - A Color representing a system-defined color. 1

getPeachPuff()

public static Color getPeachPuff()

Gets a system-defined color that has an ARGB value of #FFFFDAB9.

Returns: Color - A Color representing a system-defined color. 1

getPeru()

public static Color getPeru()

Gets a system-defined color that has an ARGB value of #FFCD853F.

Returns: Color - A Color representing a system-defined color. 1

getPink()

public static Color getPink()

Gets a system-defined color that has an ARGB value of #FFFFC0CB.

Returns: Color - A Color representing a system-defined color. 1

getPlum()

public static Color getPlum()

Gets a system-defined color that has an ARGB value of #FFDDA0DD.

Returns: Color - A Color representing a system-defined color. 1

getPowderBlue()

public static Color getPowderBlue()

Gets a system-defined color that has an ARGB value of #FFB0E0E6.

Returns: Color - A Color representing a system-defined color. 1

getPurple()

public static Color getPurple()

Gets a system-defined color that has an ARGB value of #FF800080.

Returns: Color - A Color representing a system-defined color. 1

getRed()

public static Color getRed()

Gets a system-defined color that has an ARGB value of #FFFF0000.

Returns: Color - A Color representing a system-defined color. 1

getRosyBrown()

public static Color getRosyBrown()

Gets a system-defined color that has an ARGB value of #FFBC8F8F.

Returns: Color - A Color representing a system-defined color. 1

getRoyalBlue()

public static Color getRoyalBlue()

Gets a system-defined color that has an ARGB value of #FF4169E1.

Returns: Color - A Color representing a system-defined color. 1

getSaddleBrown()

public static Color getSaddleBrown()

Gets a system-defined color that has an ARGB value of #FF8B4513.

Returns: Color - A Color representing a system-defined color. 1

getSalmon()

public static Color getSalmon()

Gets a system-defined color that has an ARGB value of #FFFA8072.

Returns: Color - A Color representing a system-defined color. 1

getSandyBrown()

public static Color getSandyBrown()

Gets a system-defined color that has an ARGB value of #FFF4A460.

Returns: Color - A Color representing a system-defined color. 1

getSeaGreen()

public static Color getSeaGreen()

Gets a system-defined color that has an ARGB value of #FF2E8B57.

Returns: Color - A Color representing a system-defined color. 1

getSeaShell()

public static Color getSeaShell()

Gets a system-defined color that has an ARGB value of #FFFFF5EE.

Returns: Color - A Color representing a system-defined color. 1

getSienna()

public static Color getSienna()

Gets a system-defined color that has an ARGB value of #FFA0522D.

Returns: Color - A Color representing a system-defined color. 1

getSilver()

public static Color getSilver()

Gets a system-defined color that has an ARGB value of #FFC0C0C0.

Returns: Color - A Color representing a system-defined color. 1

getSkyBlue()

public static Color getSkyBlue()

Gets a system-defined color that has an ARGB value of #FF87CEEB.

Returns: Color - A Color representing a system-defined color. 1

getSlateBlue()

public static Color getSlateBlue()

Gets a system-defined color that has an ARGB value of #FF6A5ACD.

Returns: Color - A Color representing a system-defined color. 1

getSlateGray()

public static Color getSlateGray()

Gets a system-defined color that has an ARGB value of #FF708090.

Returns: Color - A Color representing a system-defined color. 1

getSnow()

public static Color getSnow()

Gets a system-defined color that has an ARGB value of #FFFFFAFA.

Returns: Color - A Color representing a system-defined color. 1

getSpringGreen()

public static Color getSpringGreen()

Gets a system-defined color that has an ARGB value of #FF00FF7F.

Returns: Color - A Color representing a system-defined color. 1

getSteelBlue()

public static Color getSteelBlue()

Gets a system-defined color that has an ARGB value of #FF4682B4.

Returns: Color - A Color representing a system-defined color. 1

getTan()

public static Color getTan()

Gets a system-defined color that has an ARGB value of #FFD2B48C.

Returns: Color - A Color representing a system-defined color. 1

getTeal()

public static Color getTeal()

Gets a system-defined color that has an ARGB value of #FF008080.

Returns: Color - A Color representing a system-defined color. 1

getThistle()

public static Color getThistle()

Gets a system-defined color that has an ARGB value of #FFD8BFD8.

Returns: Color - A Color representing a system-defined color. 1

getTomato()

public static Color getTomato()

Gets a system-defined color that has an ARGB value of #FFFF6347.

Returns: Color - A Color representing a system-defined color. 1

getTurquoise()

public static Color getTurquoise()

Gets a system-defined color that has an ARGB value of #FF40E0D0.

Returns: Color - A Color representing a system-defined color. 1

getViolet()

public static Color getViolet()

Gets a system-defined color that has an ARGB value of #FFEE82EE.

Returns: Color - A Color representing a system-defined color. 1

getWheat()

public static Color getWheat()

Gets a system-defined color that has an ARGB value of #FFF5DEB3.

Returns: Color - A Color representing a system-defined color. 1

getWhite()

public static Color getWhite()

Gets a system-defined color that has an ARGB value of #FFFFFFFF.

Returns: Color - A Color representing a system-defined color. 1

getWhiteSmoke()

public static Color getWhiteSmoke()

Gets a system-defined color that has an ARGB value of #FFF5F5F5.

Returns: Color - A Color representing a system-defined color. 1

getYellow()

public static Color getYellow()

Gets a system-defined color that has an ARGB value of #FFFFFF00.

Returns: Color - A Color representing a system-defined color. 1

getYellowGreen()

public static Color getYellowGreen()

Gets a system-defined color that has an ARGB value of #FF9ACD32.

Returns: Color - A Color representing a system-defined color. 1

getA()

public final int getA()

Gets the alpha component value of this Color structure.

Returns: int - The alpha component value of this Color.

getR()

public final int getR()

Gets the red component value of this Color structure.

Returns: int - The red component value of this Color.

getG()

public final int getG()

Gets the green component value of this Color structure.

Returns: int - The green component value of this Color.

getB()

public final int getB()

Gets the blue component value of this Color structure.

Returns: int - The blue component value of this Color.

isKnownColor()

public final boolean isKnownColor()

Gets a value indicating whether this Color structure is a predefined color. Predefined colors are represented by the elements of the KnownColor enumeration.

Value: true if this Color was created from a predefined color by using either the M:Color.FromName(System.String) method or the M:Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise, false.

Returns: boolean

isEmpty()

public final boolean isEmpty()

Gets a value indicating whether this Color structure is uninitialized.

Value: This property returns true if this color is uninitialized; otherwise, false.

Returns: boolean

isNamedColor()

public final boolean isNamedColor()

Gets a value indicating whether this Color structure is a named color or a member of the KnownColor enumeration.

Value: true if this Color was created by using either the M:Color.FromName(System.String) method or the M:Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise, false.

Returns: boolean

isSystemColor()

public final boolean isSystemColor()

Gets a value indicating whether this Color structure is a system color. A system color is a color that is used in a Windows display element. System colors are represented by elements of the KnownColor enumeration.

Value: true if this Color was created from a system color by using either the M:Color.FromName(System.String) method or the M:Color.FromKnownColor(System.Drawing.KnownColor) method; otherwise, false.

Returns: boolean

getName()

public final String getName()

Gets the name of this Color.

Returns: java.lang.String

fromArgb(int argb)

public static Color fromArgb(int argb)

Creates a Color structure from a 32-bit ARGB value.

Parameters:

ParameterTypeDescription
argbintA value specifying the 32-bit ARGB value.

Returns: Color - The Color structure that this method creates.

fromArgb(int alpha, Color baseColor)

public static Color fromArgb(int alpha, Color baseColor)

Creates a Color structure from the specified Color structure, but with the new specified alpha value. Although this method allows a 32-bit value to be passed for the alpha value, the value is limited to 8 bits.

Parameters:

ParameterTypeDescription
alphaintThe alpha value for the new Color. Valid values are 0 through 255.
baseColorColorThe Color from which to create the new Color.

Returns: Color - The Color that this method creates.

fromArgb(int red, int green, int blue)

public static Color fromArgb(int red, int green, int blue)

Creates a Color structure 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:

ParameterTypeDescription
redintThe red component value for the new Color. Valid values are 0 through 255.
greenintThe green component value for the new Color. Valid values are 0 through 255.
blueintThe blue component value for the new Color. Valid values are 0 through 255.

Returns: Color - The Color that this method creates.

fromArgb(int alpha, int red, int green, int blue)

public static Color fromArgb(int alpha, int red, int green, int blue)

Creates a Color structure 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:

ParameterTypeDescription
alphaintThe alpha component. Valid values are 0 through 255.
redintThe red component. Valid values are 0 through 255.
greenintThe green component. Valid values are 0 through 255.
blueintThe blue component. Valid values are 0 through 255.

Returns: Color - The Color that this method creates.

fromKnownColor(int color)

public static Color fromKnownColor(int color)

Creates a Color structure from the specified predefined color.

Parameters:

ParameterTypeDescription
colorintAn element of the KnownColor enumeration.

Returns: Color - The Color that this method creates.

fromName(String name)

public static Color fromName(String name)

Creates a Color structure from the specified name of a predefined color.

Parameters:

ParameterTypeDescription
namejava.lang.StringA string that is the name of a predefined color. Valid names are the same as the names of the elements of the KnownColor enumeration.

Returns: Color - The Color that this method creates.

op_Equality(Color left, Color right)

public static boolean op_Equality(Color left, Color right)

Tests whether two specified Color structures are equivalent.

Parameters:

ParameterTypeDescription
leftColorThe Color that is to the left of the equality operator.
rightColorThe Color that is to the right of the equality operator.

Returns: boolean - true if the two Color structures are equal; otherwise, false.

op_Inequality(Color left, Color right)

public static boolean op_Inequality(Color left, Color right)

Tests whether two specified Color structures are different.

Parameters:

ParameterTypeDescription
leftColorThe Color that is to the left of the inequality operator.
rightColorThe Color that is to the right of the inequality operator.

Returns: boolean - true if the two Color structures are different; otherwise, false.

equals(Color other)

public final boolean equals(Color other)

Tests whether the specified color is equivalent to this color.

Parameters:

ParameterTypeDescription
otherColorThe color to test.

Returns: boolean - if the specified color is equivalent to this color; otherwise,.

equals(Object obj)

public boolean equals(Object obj)

Tests whether the specified object is equivalent to this color.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to test.

Returns: boolean - if the specified object is equivalent to this color; otherwise,.

toArgb()

public final int toArgb()

Gets the 32-bit ARGB value of this Color structure.

Returns: int - The 32-bit ARGB value of this Color.

getBrightness()

public final float getBrightness()

Gets the hue-saturation-brightness (HSB) brightness value for this Color structure.

Returns: float - The brightness of this Color. The brightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.

getHue()

public final float getHue()

Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color structure.

Returns: float - The hue, in degrees, of this java.awt.Color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSB color space.

getSaturation()

public final float getSaturation()

Gets the hue-saturation-brightness (HSB) saturation value for this Color structure.

Returns: float - The saturation of this Color. The saturation ranges from 0.0 through 1.0, where 0.0 is grayscale and 1.0 is the most saturated.

toKnownColor()

public final int toKnownColor()

Gets the KnownColor value of this Color structure.

Returns: int - An element of the KnownColor enumeration, if the Color is created from a predefined color by using either the M:Color.FromName(System.String) method or the M:Color.FromKnownColor(KnownColor) method; otherwise, 0.

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

hashCode()

public int hashCode()

Returns a hash code for this instance.

Returns: int - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

isEquals(Color obj1, Color obj2)

public static boolean isEquals(Color obj1, Color obj2)

Parameters:

ParameterTypeDescription
obj1Color
obj2Color

Returns: boolean

getEmpty()

public static Color getEmpty()

Returns: Color

CloneTo(Color that)

public void CloneTo(Color that)

Parameters:

ParameterTypeDescription
thatColor

Clone()

public Color Clone()

Returns: Color