Color Color Struct


public struct Color
type Color = struct


Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.


Color(Int32) Color(Int32)

Initializes a new instance of the Color struct.

Color(Byte, Byte, Byte) Color(Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32) Color(Int32, Int32, Int32)

Initializes a new instance of the Color struct.

Color(Byte, Byte, Byte, Byte) Color(Byte, Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32, Int32) Color(Int32, Int32, Int32, Int32)

Initializes a new instance of the Color struct.



The alpha component of the color.

AliceBlue AliceBlue
AntiqueWhite AntiqueWhite
Aqua Aqua
Aquamarine Aquamarine
Azure Azure

The blue component of the color.

Beige Beige
Bisque Bisque
Black Black
BlanchedAlmond BlanchedAlmond
Blue Blue
BlueViolet BlueViolet
Brown Brown
BurlyWood BurlyWood
CadetBlue CadetBlue
Chartreuse Chartreuse
Chocolate Chocolate
Coral Coral
CornflowerBlue CornflowerBlue
Cornsilk Cornsilk
Crimson Crimson
Cyan Cyan
DarkBlue DarkBlue
DarkCyan DarkCyan
DarkGoldenrod DarkGoldenrod
DarkGray DarkGray
DarkGreen DarkGreen
DarkKhaki DarkKhaki
DarkMagenta DarkMagenta
DarkOliveGreen DarkOliveGreen
DarkOrange DarkOrange
DarkOrchid DarkOrchid
DarkRed DarkRed
DarkSalmon DarkSalmon
DarkSeaGreen DarkSeaGreen
DarkSlateBlue DarkSlateBlue
DarkSlateGray DarkSlateGray
DarkTurquoise DarkTurquoise
DarkViolet DarkViolet
DeepPink DeepPink
DeepSkyBlue DeepSkyBlue
DimGray DimGray
DodgerBlue DodgerBlue
Firebrick Firebrick
FloralWhite FloralWhite
ForestGreen ForestGreen
Fuchsia Fuchsia

The green component of the color.

Gainsboro Gainsboro
GhostWhite GhostWhite
Gold Gold
Goldenrod Goldenrod
Gray Gray
Green Green
GreenYellow GreenYellow
Honeydew Honeydew
HotPink HotPink
IndianRed IndianRed
Indigo Indigo
Ivory Ivory
Khaki Khaki
Lavender Lavender
LavenderBlush LavenderBlush
LawnGreen LawnGreen
LemonChiffon LemonChiffon
LightBlue LightBlue
LightCoral LightCoral
LightCyan LightCyan
LightGoldenrodYellow LightGoldenrodYellow
LightGray LightGray
LightGreen LightGreen
LightPink LightPink
LightSalmon LightSalmon
LightSeaGreen LightSeaGreen
LightSkyBlue LightSkyBlue
LightSlateGray LightSlateGray
LightSteelBlue LightSteelBlue
LightYellow LightYellow
Lime Lime
LimeGreen LimeGreen
Linen Linen
Magenta Magenta
Maroon Maroon
MediumAquamarine MediumAquamarine
MediumBlue MediumBlue
MediumOrchid MediumOrchid
MediumPurple MediumPurple
MediumSeaGreen MediumSeaGreen
MediumSlateBlue MediumSlateBlue
MediumSpringGreen MediumSpringGreen
MediumTurquoise MediumTurquoise
MediumVioletRed MediumVioletRed
MidnightBlue MidnightBlue
MintCream MintCream
MistyRose MistyRose
Moccasin Moccasin
NavajoWhite NavajoWhite
Navy Navy
OldLace OldLace
Olive Olive
OliveDrab OliveDrab
Orange Orange
OrangeRed OrangeRed
Orchid Orchid
PaleGoldenrod PaleGoldenrod
PaleGreen PaleGreen
PaleTurquoise PaleTurquoise
PaleVioletRed PaleVioletRed
PapayaWhip PapayaWhip
PeachPuff PeachPuff
Peru Peru
Pink Pink
Plum Plum
PowderBlue PowderBlue
Purple Purple

The red component of the color.

Red Red
RosyBrown RosyBrown
RoyalBlue RoyalBlue
SaddleBrown SaddleBrown
Salmon Salmon
SandyBrown SandyBrown
SeaGreen SeaGreen
SeaShell SeaShell
Sienna Sienna
Silver Silver
SkyBlue SkyBlue
SlateBlue SlateBlue
SlateGray SlateGray
Snow Snow
SpringGreen SpringGreen
SteelBlue SteelBlue
Tan Tan
Teal Teal
Thistle Thistle
Tomato Tomato
Transparent Transparent
Turquoise Turquoise
Violet Violet
Wheat Wheat
White White
WhiteSmoke WhiteSmoke
Yellow Yellow
YellowGreen YellowGreen


Argb(Int32, Int32, Int32, Int32) Argb(Int32, Int32, Int32, Int32)
ColorToHSV(Color, Single[]) ColorToHSV(Color, Single[])
Equals(Object) Equals(Object)

Determines if this instance of a Color struct and another are the same.

GetAlphaComponent(Int32) GetAlphaComponent(Int32)

Gets the Alpha component from an integer color.

GetBlueComponent(Int32) GetBlueComponent(Int32)

Gets the Blue component from an integer color.

GetBrightness() GetBrightness()
GetGreenComponent(Int32) GetGreenComponent(Int32)

Gets the Green component from an integer color.

GetHashCode() GetHashCode()
GetHue() GetHue()
GetRedComponent(Int32) GetRedComponent(Int32)

Gets the Red component from an integer color.

GetSaturation() GetSaturation()
HSVToColor(Int32, Single[]) HSVToColor(Int32, Single[])
HSVToColor(Single[]) HSVToColor(Single[])
ParseColor(String) ParseColor(String)
Rgb(Int32, Int32, Int32) Rgb(Int32, Int32, Int32)
RGBToHSV(Int32, Int32, Int32, Single[]) RGBToHSV(Int32, Int32, Int32, Single[])
ToArgb() ToArgb()

Return an integer representation of the Color.

ToString() ToString()

Creates a string representation of the Color.


Equality(Color, Color) Equality(Color, Color)

Determine if two Color structs have the same value.

Implicit(Color to Int32) Implicit(Color to Int32)

Implicitly casts a Color to an integer.

Inequality(Color, Color) Inequality(Color, Color)

Determine if two Color structs do not have the same value.

Applies to