Color Struct

Definition

public struct Color
type Color = struct
Inheritance
Color

Remarks

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.

Constructors

Color(Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Byte, Byte, Byte, Byte)

Initializes a new instance of the Color struct.

Color(Int32)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32)

Initializes a new instance of the Color struct.

Color(Int32, Int32, Int32, Int32)

Initializes a new instance of the Color struct.

Properties

A

The alpha component of the color.

AliceBlue
AntiqueWhite
Aqua
Aquamarine
Azure
B

The blue component of the color.

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

The green component of the color.

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

The red component of the color.

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

Methods

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

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

GetAlphaComponent(Int32)

Gets the Alpha component from an integer color.

GetBlueComponent(Int32)

Gets the Blue component from an integer color.

GetBrightness()
GetGreenComponent(Int32)

Gets the Green component from an integer color.

GetHashCode()
GetHue()
GetRedComponent(Int32)

Gets the Red component from an integer color.

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

Return an integer representation of the Color.

ToString()

Creates a string representation of the Color.

Operators

Equality(Color, Color)

Determine if two Color structs have the same value.

Implicit(Color to Int32)

Implicitly casts a Color to an integer.

Inequality(Color, Color)

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

Applies to