public class Color extends Object
Structure representing a color.
Constructor and Description |
---|
Color() |
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
Color |
Clone() |
void |
CloneTo(Color that) |
boolean |
equals(Color other)
Determines whether the specified
Color structure is equivalent to this Color structure. |
static boolean |
equals(Color obj1,
Color obj2) |
boolean |
equals(Object obj)
Determines whether the specified object is a
Color > structure and is equivalent to
this Color structure. |
static Color |
fromArgb(int argb)
Creates a
structure from a 32-bit ARGB value. |
static Color |
fromArgb(int alpha,
Color baseColor)
Creates a
Color structure from the specified Color structure,
but with the new specified alpha value. |
static Color |
fromArgb(int red,
int green,
int blue)
Creates a
Color structure from the specified 8-bit color values (red, green, and blue) and
the alpha value is implicitly 255 (fully opaque). |
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. |
int |
getA()
Gets the alpha component value of the color.
|
static Color |
getAliceBlue()
Gets a system-defined color.
|
static Color |
getAntiqueWhite()
Gets a system-defined color.
|
static Color |
getAqua()
Gets a system-defined color.
|
static Color |
getAquamarine()
Gets a system-defined color.
|
static Color |
getAzure()
Gets a system-defined color.
|
int |
getB()
Gets the blue component value of the color.
|
static Color |
getBeige()
Gets a system-defined color.
|
static Color |
getBisque()
Gets a system-defined color.
|
static Color |
getBlack()
Gets a system-defined color.
|
static Color |
getBlanchedAlmond()
Gets a system-defined color.
|
static Color |
getBlue()
Gets a system-defined color.
|
static Color |
getBlueViolet()
Gets a system-defined color.
|
float |
getBrightness()
Gets the hue-saturation-brightness (HSB) brightness value for this
Color structure. |
static Color |
getBrown()
Gets a system-defined color.
|
static Color |
getBurlyWood()
Gets a system-defined color.
|
static Color |
getCadetBlue()
Gets a system-defined color.
|
static Color |
getChartreuse()
Gets a system-defined color.
|
static Color |
getChocolate()
Gets a system-defined color.
|
static Color |
getCoral()
Gets a system-defined color.
|
static Color |
getCornflowerBlue()
Gets a system-defined color.
|
static Color |
getCornsilk()
Gets a system-defined color.
|
static Color |
getCrimson()
Gets a system-defined color.
|
static Color |
getCyan()
Gets a system-defined color.
|
static Color |
getDarkBlue()
Gets a system-defined color.
|
static Color |
getDarkCyan()
Gets a system-defined color.
|
static Color |
getDarkGoldenrod()
Gets a system-defined color.
|
static Color |
getDarkGray()
Gets a system-defined color.
|
static Color |
getDarkGreen()
Gets a system-defined color.
|
static Color |
getDarkKhaki()
Gets a system-defined color.
|
static Color |
getDarkMagenta()
Gets a system-defined color.
|
static Color |
getDarkOliveGreen()
Gets a system-defined color.
|
static Color |
getDarkOrange()
Gets a system-defined color.
|
static Color |
getDarkOrchid()
Gets a system-defined color.
|
static Color |
getDarkRed()
Gets a system-defined color.
|
static Color |
getDarkSalmon()
Gets a system-defined color.
|
static Color |
getDarkSeaGreen()
Gets a system-defined color.
|
static Color |
getDarkSlateBlue()
Gets a system-defined color.
|
static Color |
getDarkSlateGray()
Gets a system-defined color.
|
static Color |
getDarkTurquoise()
Gets a system-defined color.
|
static Color |
getDarkViolet()
Gets a system-defined color.
|
static Color |
getDeepPink()
Gets a system-defined color.
|
static Color |
getDeepSkyBlue()
Gets a system-defined color.
|
static Color |
getDimGray()
Gets a system-defined color.
|
static Color |
getDodgerBlue()
Gets a system-defined color.
|
static Color |
getEmpty()
Gets a system-defined color.
|
static Color |
getFirebrick()
Gets a system-defined color.
|
static Color |
getFloralWhite()
Gets a system-defined color.
|
static Color |
getForestGreen()
Gets a system-defined color.
|
static Color |
getFuchsia()
Gets a system-defined color.
|
int |
getG()
Gets the green component value of the color.
|
static Color |
getGainsboro()
Gets a system-defined color.
|
static Color |
getGhostWhite()
Gets a system-defined color.
|
static Color |
getGold()
Gets a system-defined color.
|
static Color |
getGoldenrod()
Gets a system-defined color.
|
static Color |
getGray()
Gets a system-defined color.
|
static Color |
getGreen()
Gets a system-defined color.
|
static Color |
getGreenYellow()
Gets a system-defined color.
|
static Color |
getHoneydew()
Gets a system-defined color.
|
static Color |
getHotPink()
Gets a system-defined color.
|
float |
getHue()
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this
Color structure. |
static Color |
getIndianRed()
Gets a system-defined color.
|
static Color |
getIndigo()
Gets a system-defined color.
|
static Color |
getIvory()
Gets a system-defined color.
|
static Color |
getKhaki()
Gets a system-defined color.
|
static Color |
getLavender()
Gets a system-defined color.
|
static Color |
getLavenderBlush()
Gets a system-defined color.
|
static Color |
getLawnGreen()
Gets a system-defined color.
|
static Color |
getLemonChiffon()
Gets a system-defined color.
|
static Color |
getLightBlue()
Gets a system-defined color.
|
static Color |
getLightCoral()
Gets a system-defined color.
|
static Color |
getLightCyan()
Gets a system-defined color.
|
static Color |
getLightGoldenrodYellow()
Gets a system-defined color.
|
static Color |
getLightGray()
Gets a system-defined color.
|
static Color |
getLightGreen()
Gets a system-defined color.
|
static Color |
getLightPink()
Gets a system-defined color.
|
static Color |
getLightSalmon()
Gets a system-defined color.
|
static Color |
getLightSeaGreen()
Gets a system-defined color.
|
static Color |
getLightSkyBlue()
Gets a system-defined color.
|
static Color |
getLightSlateGray()
Gets a system-defined color.
|
static Color |
getLightSteelBlue()
Gets a system-defined color.
|
static Color |
getLightYellow()
Gets a system-defined color.
|
static Color |
getLime()
Gets a system-defined color.
|
static Color |
getLimeGreen()
Gets a system-defined color.
|
static Color |
getLinen()
Gets a system-defined color.
|
static Color |
getMagenta()
Gets a system-defined color.
|
static Color |
getMaroon()
Gets a system-defined color.
|
static Color |
getMediumAquamarine()
Gets a system-defined color.
|
static Color |
getMediumBlue()
Gets a system-defined color.
|
static Color |
getMediumOrchid()
Gets a system-defined color.
|
static Color |
getMediumPurple()
Gets a system-defined color.
|
static Color |
getMediumSeaGreen()
Gets a system-defined color.
|
static Color |
getMediumSlateBlue()
Gets a system-defined color.
|
static Color |
getMediumSpringGreen()
Gets a system-defined color.
|
static Color |
getMediumTurquoise()
Gets a system-defined color.
|
static Color |
getMediumVioletRed()
Gets a system-defined color.
|
static Color |
getMidnightBlue()
Gets a system-defined color.
|
static Color |
getMintCream()
Gets a system-defined color.
|
static Color |
getMistyRose()
Gets a system-defined color.
|
static Color |
getMoccasin()
Gets a system-defined color.
|
static Color |
getNavajoWhite()
Gets a system-defined color.
|
static Color |
getNavy()
Gets a system-defined color.
|
static Color |
getOldLace()
Gets a system-defined color.
|
static Color |
getOlive()
Gets a system-defined color.
|
static Color |
getOliveDrab()
Gets a system-defined color.
|
static Color |
getOrange()
Gets a system-defined color.
|
static Color |
getOrangeRed()
Gets a system-defined color.
|
static Color |
getOrchid()
Gets a system-defined color.
|
static Color |
getPaleGoldenrod()
Gets a system-defined color.
|
static Color |
getPaleGreen()
Gets a system-defined color.
|
static Color |
getPaleTurquoise()
Gets a system-defined color.
|
static Color |
getPaleVioletRed()
Gets a system-defined color.
|
static Color |
getPapayaWhip()
Gets a system-defined color.
|
static Color |
getPeachPuff()
Gets a system-defined color.
|
static Color |
getPeru()
Gets a system-defined color.
|
static Color |
getPink()
Gets a system-defined color.
|
static Color |
getPlum()
Gets a system-defined color.
|
static Color |
getPowderBlue()
Gets a system-defined color.
|
static Color |
getPurple()
Gets a system-defined color.
|
int |
getR()
Gets the red component value of the color.
|
static Color |
getRed()
Gets a system-defined color.
|
static Color |
getRosyBrown()
Gets a system-defined color.
|
static Color |
getRoyalBlue()
Gets a system-defined color.
|
static Color |
getSaddleBrown()
Gets a system-defined color.
|
static Color |
getSalmon()
Gets a system-defined color.
|
static Color |
getSandyBrown()
Gets a system-defined color.
|
float |
getSaturation()
Gets the hue-saturation-brightness (HSB) saturation value for this
Color structure. |
static Color |
getSeaGreen()
Gets a system-defined color.
|
static Color |
getSeaShell()
Gets a system-defined color.
|
static Color |
getSienna()
Gets a system-defined color.
|
static Color |
getSilver()
Gets a system-defined color.
|
static Color |
getSkyBlue()
Gets a system-defined color.
|
static Color |
getSlateBlue()
Gets a system-defined color.
|
static Color |
getSlateGray()
Gets a system-defined color.
|
static Color |
getSnow()
Gets a system-defined color.
|
static Color |
getSpringGreen()
Gets a system-defined color.
|
static Color |
getSteelBlue()
Gets a system-defined color.
|
static Color |
getTan()
Gets a system-defined color.
|
static Color |
getTeal()
Gets a system-defined color.
|
static Color |
getThistle()
Gets a system-defined color.
|
static Color |
getTomato()
Gets a system-defined color.
|
static Color |
getTransparent()
Gets a system-defined color.
|
static Color |
getTurquoise()
Gets a system-defined color.
|
static Color |
getViolet()
Gets a system-defined color.
|
static Color |
getWheat()
Gets a system-defined color.
|
static Color |
getWhite()
Gets a system-defined color.
|
static Color |
getWhiteSmoke()
Gets a system-defined color.
|
static Color |
getYellow()
Gets a system-defined color.
|
static Color |
getYellowGreen()
Gets a system-defined color.
|
int |
hashCode()
Gets a hash code for this
Color structure. |
boolean |
isEmpty()
Gets a value indicating whether this
Color structure is uninitialized. |
int |
toArgb()
Gets the 32-bit ARGB value of this
Color structure. |
public static Color getEmpty()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getTransparent()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getAliceBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getAntiqueWhite()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getAqua()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getAquamarine()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getAzure()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBeige()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBisque()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBlack()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBlanchedAlmond()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBlueViolet()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBrown()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getBurlyWood()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCadetBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getChartreuse()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getChocolate()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCoral()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCornflowerBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCornsilk()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCrimson()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getCyan()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkCyan()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkGoldenrod()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkKhaki()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkMagenta()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkOliveGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkOrange()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkOrchid()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkSalmon()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkSeaGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkSlateBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkSlateGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkTurquoise()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDarkViolet()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDeepPink()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDeepSkyBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDimGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getDodgerBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getFirebrick()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getFloralWhite()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getForestGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getFuchsia()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGainsboro()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGhostWhite()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGold()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGoldenrod()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getGreenYellow()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getHoneydew()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getHotPink()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getIndianRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getIndigo()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getIvory()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getKhaki()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLavender()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLavenderBlush()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLawnGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLemonChiffon()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightCoral()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightCyan()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightGoldenrodYellow()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightPink()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightSalmon()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightSeaGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightSkyBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightSlateGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightSteelBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLightYellow()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLime()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLimeGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getLinen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMagenta()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMaroon()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumAquamarine()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumOrchid()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumPurple()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumSeaGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumSlateBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumSpringGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumTurquoise()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMediumVioletRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMidnightBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMintCream()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMistyRose()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getMoccasin()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getNavajoWhite()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getNavy()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOldLace()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOlive()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOliveDrab()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOrange()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOrangeRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getOrchid()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPaleGoldenrod()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPaleGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPaleTurquoise()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPaleVioletRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPapayaWhip()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPeachPuff()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPeru()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPink()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPlum()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPowderBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getPurple()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getRed()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getRosyBrown()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getRoyalBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSaddleBrown()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSalmon()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSandyBrown()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSeaGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSeaShell()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSienna()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSilver()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSkyBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSlateBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSlateGray()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSnow()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSpringGreen()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getSteelBlue()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getTan()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getTeal()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getThistle()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getTomato()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getTurquoise()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getViolet()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getWheat()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getWhite()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getWhiteSmoke()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getYellow()
Gets a system-defined color.
Color
representing a system-defined color.public static Color getYellowGreen()
Gets a system-defined color.
Color
representing a system-defined color.public final int getR()
Gets the red component value of the color.
public final int getG()
Gets the green component value of the color.
public final int getB()
Gets the blue component value of the color.
public final int getA()
Gets the alpha component value of the color.
public final boolean isEmpty()
Gets a value indicating whether this Color
structure is uninitialized.
public static Color fromArgb(int argb)
Color
structure from a 32-bit ARGB value.argb
- A value specifying the 32-bit ARGB value.Color
structure that this method creates.public static Color fromArgb(int alpha, Color baseColor)
Creates a Color
structure from the specified Color
structure,
but with the new specified alpha value.
alpha
- The alpha value for the new Color
. Valid values are 0 through 255.baseColor
- The Color
from which to create the new Color
.
Color
that this method creates.ArgumentOutOfRangeException
- Alpha is less than 0 or greater than 255.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) and
the alpha value is implicitly 255 (fully opaque).
red
- The red component value for the new Color
. Valid values are 0 through 255.green
- The green component value for the new Color
. Valid values are 0 through 255.blue
- The blue component value for the new Color
. Valid values are 0 through 255.
Color
that this method creates.ArgumentOutOfRangeException
- Red, green, or blue is less than 0 or greater than 255.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.
alpha
- The alpha component value for the new Color
. Valid values are 0 through 255.red
- The red component value for the new Color
. Valid values are 0 through 255.green
- The green component value for the new Color
. Valid values are 0 through 255.blue
- The blue component value for the new Color
. Valid values are 0 through 255.
Color
that this method creates.ArgumentOutOfRangeException
- Red, green, or blue is less than 0 or greater than 255.public final int toArgb()
Gets the 32-bit ARGB value of this Color
structure.
Color
structure.public final float getHue()
Gets the hue-saturation-brightness (HSB) hue value, in degrees, for this Color
structure.
Color
. The hue is measured in degrees, ranging from 0.0
through 360.0, in HSB color space.public final float getSaturation()
Gets the hue-saturation-brightness (HSB) saturation value for this Color
structure.
Color
. The saturation ranges from 0.0 through 1.0,
where 0.0 is grayscale and 1.0 is the most saturated.public final float getBrightness()
Gets the hue-saturation-brightness (HSB) brightness value for this Color
structure.
Color
. The brightness ranges from 0.0 through 1.0,
where 0.0 represents black and 1.0 represents white.public final boolean equals(Color other)
Determines whether the specified Color
structure is equivalent to this Color
structure.
other
- The color to test.Color
structure; otherwise, false.public boolean equals(Object obj)
Determines whether the specified object is a Color
> structure and is equivalent to
this Color
structure.
public int hashCode()
Gets a hash code for this Color
structure.
public void CloneTo(Color that)
public Color Clone()