Color
Summary
Represents an ARGB (alpha, red, green, blue) color.
Signature
1 | |
Namespace
cAlgo.API
Examples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | |
Methods
ToArgb
Summary
Get the 32-bit ARGB color value.
Signature
1 | |
Return Value
int
ToHexString
Summary
Get the hex string representation of the color.
Signature
1 | |
Return Value
string
ToString
Summary
Returns a System.String that represents this instance.
Signature
1 | |
Return Value
string
Equals (2)
Equals (1 of 2)
Summary
Defines whether the specified object is equal to this instance.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| other | Color | The object to compare with the current object. |
Return Value
bool
Equals (2 of 2)
Summary
Defines whether the specified object is equal to this instance.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Return Value
bool
GetHashCode
Summary
Returns the hash code for this instance.
Signature
1 | |
Return Value
int
FromArgb (4)
FromArgb (1 of 4)
Summary
Creates a color from alpha, red, green and blue components.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| alpha | int | Alpha value from 0 to 255 |
| red | int | Red value from 0 to 255 |
| green | int | Green value from 0 to 255 |
| blue | int | Blue value from 0 to 255 |
Return Value
Color
Examples
1 | |
FromArgb (2 of 4)
Summary
Creates a color from existing color, but with new specified alpha value.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| alpha | int | New alpha value from 0 to 255 |
| baseColor | Color | Base color from which red, green and blue values will be copied to a new color |
Return Value
Color
Examples
1 | |
FromArgb (3 of 4)
Summary
Creates a color from a 32-bit ARGB value.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| argb | int | Color ARGB 32-bit integer value |
Return Value
Color
FromArgb (4 of 4)
Summary
Creates a color from red, green and blue values. The alpha value is implicitly 255 (fully opaque).
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| red | int | Red value from 0 to 255 |
| green | int | Green value from 0 to 255 |
| blue | int | Blue value from 0 to 255 |
Return Value
Color
Examples
1 | |
FromHex
Summary
Attempts to convert a hex string to a Color.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| hex | string | Hex string to convert to a Color |
Return Value
Color
Examples
1 | |
FromName
Summary
Creates a color from the specified name of a predefined color.
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| name | string | Name of predefined color |
Return Value
Color
Examples
1 | |
ToByte
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| value | int |
Return Value
byte
MakeArgb
Signature
1 | |
Parameters
| Name | Type | Description |
|---|---|---|
| a | byte | |
| r | byte | |
| g | byte | |
| b | byte |
Return Value
uint
Properties
A
Summary
Gets the alpha component value of the color.
Signature
1 | |
Return Value
byte
R
Summary
Gets the red component value of the color.
Signature
1 | |
Return Value
byte
G
Summary
Gets the green component value of the color.
Signature
1 | |
Return Value
byte
B
Summary
Gets the blue component value of the color.
Signature
1 | |
Return Value
byte
Transparent
Summary
Gets a system-defined color that has an ARGB value of #00FFFFFF.
Signature
1 | |
Return Value
Color
AliceBlue
Summary
Gets a system-defined color that has an ARGB value of #FFF0F8FF.
Signature
1 | |
Return Value
Color
AntiqueWhite
Summary
Gets a system-defined color that has an ARGB value of #FFFAEBD7.
Signature
1 | |
Return Value
Color
Aqua
Summary
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Signature
1 | |
Return Value
Color
Aquamarine
Summary
Gets a system-defined color that has an ARGB value of #FF7FFFD4.
Signature
1 | |
Return Value
Color
Azure
Summary
Gets a system-defined color that has an ARGB value of #FFF0FFFF.
Signature
1 | |
Return Value
Color
Beige
Summary
Gets a system-defined color that has an ARGB value of #FFF5F5DC.
Signature
1 | |
Return Value
Color
Bisque
Summary
Gets a system-defined color that has an ARGB value of #FFFFE4C4.
Signature
1 | |
Return Value
Color
Black
Summary
Gets a system-defined color that has an ARGB value of #FF000000.
Signature
1 | |
Return Value
Color
BlanchedAlmond
Summary
Gets a system-defined color that has an ARGB value of #FFFFEBCD.
Signature
1 | |
Return Value
Color
Blue
Summary
Gets a system-defined color that has an ARGB value of #FF0000FF.
Signature
1 | |
Return Value
Color
BlueViolet
Summary
Gets a system-defined color that has an ARGB value of #FF8A2BE2.
Signature
1 | |
Return Value
Color
Brown
Summary
Gets a system-defined color that has an ARGB value of #FFA52A2A.
Signature
1 | |
Return Value
Color
BurlyWood
Summary
Gets a system-defined color that has an ARGB value of #FFDEB887.
Signature
1 | |
Return Value
Color
CadetBlue
Summary
Gets a system-defined color that has an ARGB value of #FF5F9EA0.
Signature
1 | |
Return Value
Color
Chartreuse
Summary
Gets a system-defined color that has an ARGB value of #FF7FFF00.
Signature
1 | |
Return Value
Color
Chocolate
Summary
Gets a system-defined color that has an ARGB value of #FFD2691E.
Signature
1 | |
Return Value
Color
Coral
Summary
Gets a system-defined color that has an ARGB value of #FFFF7F50.
Signature
1 | |
Return Value
Color
CornflowerBlue
Summary
Gets a system-defined color that has an ARGB value of #FF6495ED.
Signature
1 | |
Return Value
Color
Cornsilk
Summary
Gets a system-defined color that has an ARGB value of #FFFFF8DC.
Signature
1 | |
Return Value
Color
Crimson
Summary
Gets a system-defined color that has an ARGB value of #FFDC143C.
Signature
1 | |
Return Value
Color
Cyan
Summary
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Signature
1 | |
Return Value
Color
DarkBlue
Summary
Gets a system-defined color that has an ARGB value of #FF00008B.
Signature
1 | |
Return Value
Color
DarkCyan
Summary
Gets a system-defined color that has an ARGB value of #FF008B8B.
Signature
1 | |
Return Value
Color
DarkGoldenrod
Summary
Gets a system-defined color that has an ARGB value of #FFB8860B.
Signature
1 | |
Return Value
Color
DarkGray
Summary
Gets a system-defined color that has an ARGB value of #FFA9A9A9.
Signature
1 | |
Return Value
Color
DarkGreen
Summary
Gets a system-defined color that has an ARGB value of #FF006400.
Signature
1 | |
Return Value
Color
DarkKhaki
Summary
Gets a system-defined color that has an ARGB value of #FFBDB76B.
Signature
1 | |
Return Value
Color
DarkMagenta
Summary
Gets a system-defined color that has an ARGB value of #FF8B008B.
Signature
1 | |
Return Value
Color
DarkOliveGreen
Summary
Gets a system-defined color that has an ARGB value of #FF556B2F.
Signature
1 | |
Return Value
Color
DarkOrange
Summary
Gets a system-defined color that has an ARGB value of #FFFF8C00.
Signature
1 | |
Return Value
Color
DarkOrchid
Summary
Gets a system-defined color that has an ARGB value of #FF9932CC.
Signature
1 | |
Return Value
Color
DarkRed
Summary
Gets a system-defined color that has an ARGB value of #FF8B0000.
Signature
1 | |
Return Value
Color
DarkSalmon
Summary
Gets a system-defined color that has an ARGB value of #FFE9967A.
Signature
1 | |
Return Value
Color
DarkSeaGreen
Summary
Gets a system-defined color that has an ARGB value of #FF8FBC8F.
Signature
1 | |
Return Value
Color
DarkSlateBlue
Summary
Gets a system-defined color that has an ARGB value of #FF483D8B.
Signature
1 | |
Return Value
Color
DarkSlateGray
Summary
Gets a system-defined color that has an ARGB value of #FF2F4F4F.
Signature
1 | |
Return Value
Color
DarkTurquoise
Summary
Gets a system-defined color that has an ARGB value of #FF00CED1.
Signature
1 | |
Return Value
Color
DarkViolet
Summary
Gets a system-defined color that has an ARGB value of #FF9400D3.
Signature
1 | |
Return Value
Color
DeepPink
Summary
Gets a system-defined color that has an ARGB value of #FFFF1493.
Signature
1 | |
Return Value
Color
DeepSkyBlue
Summary
Gets a system-defined color that has an ARGB value of #FF00BFFF.
Signature
1 | |
Return Value
Color
DimGray
Summary
Gets a system-defined color that has an ARGB value of #FF696969.
Signature
1 | |
Return Value
Color
DodgerBlue
Summary
Gets a system-defined color that has an ARGB value of #FF1E90FF.
Signature
1 | |
Return Value
Color
Firebrick
Summary
Gets a system-defined color that has an ARGB value of #FFB22222.
Signature
1 | |
Return Value
Color
FloralWhite
Summary
Gets a system-defined color that has an ARGB value of #FFFFFAF0.
Signature
1 | |
Return Value
Color
ForestGreen
Summary
Gets a system-defined color that has an ARGB value of #FF228B22.
Signature
1 | |
Return Value
Color
Fuchsia
Summary
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Signature
1 | |
Return Value
Color
Gainsboro
Summary
Gets a system-defined color that has an ARGB value of #FFDCDCDC.
Signature
1 | |
Return Value
Color
GhostWhite
Summary
Gets a system-defined color that has an ARGB value of #FFF8F8FF.
Signature
1 | |
Return Value
Color
Gold
Summary
Gets a system-defined color that has an ARGB value of #FFFFD700.
Signature
1 | |
Return Value
Color
Goldenrod
Summary
Gets a system-defined color that has an ARGB value of #FFDAA520.
Signature
1 | |
Return Value
Color
Gray
Summary
Gets a system-defined color that has an ARGB value of #FF808080.
Signature
1 | |
Return Value
Color
Green
Summary
Gets a system-defined color that has an ARGB value of #FF008000.
Signature
1 | |
Return Value
Color
GreenYellow
Summary
Gets a system-defined color that has an ARGB value of #FFADFF2F.
Signature
1 | |
Return Value
Color
Honeydew
Summary
Gets a system-defined color that has an ARGB value of #FFF0FFF0.
Signature
1 | |
Return Value
Color
HotPink
Summary
Gets a system-defined color that has an ARGB value of #FFFF69B4.
Signature
1 | |
Return Value
Color
IndianRed
Summary
Gets a system-defined color that has an ARGB value of #FFCD5C5C.
Signature
1 | |
Return Value
Color
Indigo
Summary
Gets a system-defined color that has an ARGB value of #FF4B0082.
Signature
1 | |
Return Value
Color
Ivory
Summary
Gets a system-defined color that has an ARGB value of #FFFFFFF0.
Signature
1 | |
Return Value
Color
Khaki
Summary
Gets a system-defined color that has an ARGB value of #FFF0E68C.
Signature
1 | |
Return Value
Color
Lavender
Summary
Gets a system-defined color that has an ARGB value of #FFE6E6FA.
Signature
1 | |
Return Value
Color
LavenderBlush
Summary
Gets a system-defined color that has an ARGB value of #FFFFF0F5.
Signature
1 | |
Return Value
Color
LawnGreen
Summary
Gets a system-defined color that has an ARGB value of #FF7CFC00.
Signature
1 | |
Return Value
Color
LemonChiffon
Summary
Gets a system-defined color that has an ARGB value of #FFFFFACD.
Signature
1 | |
Return Value
Color
LightBlue
Summary
Gets a system-defined color that has an ARGB value of #FFADD8E6.
Signature
1 | |
Return Value
Color
LightCoral
Summary
Gets a system-defined color that has an ARGB value of #FFF08080.
Signature
1 | |
Return Value
Color
LightCyan
Summary
Gets a system-defined color that has an ARGB value of #FFE0FFFF.
Signature
1 | |
Return Value
Color
LightGoldenrodYellow
Summary
Gets a system-defined color that has an ARGB value of #FFFAFAD2.
Signature
1 | |
Return Value
Color
LightGray
Summary
Gets a system-defined color that has an ARGB value of #FFD3D3D3.
Signature
1 | |
Return Value
Color
LightGreen
Summary
Gets a system-defined color that has an ARGB value of #FF90EE90.
Signature
1 | |
Return Value
Color
LightPink
Summary
Gets a system-defined color that has an ARGB value of #FFFFB6C1.
Signature
1 | |
Return Value
Color
LightSalmon
Summary
Gets a system-defined color that has an ARGB value of #FFFFA07A.
Signature
1 | |
Return Value
Color
LightSeaGreen
Summary
Gets a system-defined color that has an ARGB value of #FF20B2AA.
Signature
1 | |
Return Value
Color
LightSkyBlue
Summary
Gets a system-defined color that has an ARGB value of #FF87CEFA.
Signature
1 | |
Return Value
Color
LightSlateGray
Summary
Gets a system-defined color that has an ARGB value of #FF778899.
Signature
1 | |
Return Value
Color
LightSteelBlue
Summary
Gets a system-defined color that has an ARGB value of #FFB0C4DE.
Signature
1 | |
Return Value
Color
LightYellow
Summary
Gets a system-defined color that has an ARGB value of #FFFFFFE0.
Signature
1 | |
Return Value
Color
Lime
Summary
Gets a system-defined color that has an ARGB value of #FF00FF00.
Signature
1 | |
Return Value
Color
LimeGreen
Summary
Gets a system-defined color that has an ARGB value of #FF32CD32.
Signature
1 | |
Return Value
Color
Linen
Summary
Gets a system-defined color that has an ARGB value of #FFFAF0E6.
Signature
1 | |
Return Value
Color
Magenta
Summary
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Signature
1 | |
Return Value
Color
Maroon
Summary
Gets a system-defined color that has an ARGB value of #FF800000.
Signature
1 | |
Return Value
Color
MediumAquamarine
Summary
Gets a system-defined color that has an ARGB value of #FF66CDAA.
Signature
1 | |
Return Value
Color
MediumBlue
Summary
Gets a system-defined color that has an ARGB value of #FF0000CD.
Signature
1 | |
Return Value
Color
MediumOrchid
Summary
Gets a system-defined color that has an ARGB value of #FFBA55D3.
Signature
1 | |
Return Value
Color
MediumPurple
Summary
Gets a system-defined color that has an ARGB value of #FF9370DB.
Signature
1 | |
Return Value
Color
MediumSeaGreen
Summary
Gets a system-defined color that has an ARGB value of #FF3CB371.
Signature
1 | |
Return Value
Color
MediumSlateBlue
Summary
Gets a system-defined color that has an ARGB value of #FF7B68EE.
Signature
1 | |
Return Value
Color
MediumSpringGreen
Summary
Gets a system-defined color that has an ARGB value of #FF00FA9A.
Signature
1 | |
Return Value
Color
MediumTurquoise
Summary
Gets a system-defined color that has an ARGB value of #FF48D1CC.
Signature
1 | |
Return Value
Color
MediumVioletRed
Summary
Gets a system-defined color that has an ARGB value of #FFC71585
Signature
1 | |
Return Value
Color
MidnightBlue
Summary
Gets a system-defined color that has an ARGB value of #FF191970.
Signature
1 | |
Return Value
Color
MintCream
Summary
Gets a system-defined color that has an ARGB value of #FFF5FFFA.
Signature
1 | |
Return Value
Color
MistyRose
Summary
Gets a system-defined color that has an ARGB value of #FFFFE4E1.
Signature
1 | |
Return Value
Color
Moccasin
Summary
Gets a system-defined color that has an ARGB value of #FFFFE4B5.
Signature
1 | |
Return Value
Color
NavajoWhite
Summary
Gets a system-defined color that has an ARGB value of #FFFFDEAD.
Signature
1 | |
Return Value
Color
Navy
Summary
Gets a system-defined color that has an ARGB value of #FF000080.
Signature
1 | |
Return Value
Color
OldLace
Summary
Gets a system-defined color that has an ARGB value of #FFFDF5E6.
Signature
1 | |
Return Value
Color
Olive
Summary
Gets a system-defined color that has an ARGB value of #FF808000.
Signature
1 | |
Return Value
Color
OliveDrab
Summary
Gets a system-defined color that has an ARGB value of #FF6B8E23.
Signature
1 | |
Return Value
Color
Orange
Summary
Gets a system-defined color that has an ARGB value of #FFFFA500.
Signature
1 | |
Return Value
Color
OrangeRed
Summary
Gets a system-defined color that has an ARGB value of #FFFF4500.
Signature
1 | |
Return Value
Color
Orchid
Summary
Gets a system-defined color that has an ARGB value of #FFDA70D6.
Signature
1 | |
Return Value
Color
PaleGoldenrod
Summary
Gets a system-defined color that has an ARGB value of #FFEEE8AA.
Signature
1 | |
Return Value
Color
PaleGreen
Summary
Gets a system-defined color that has an ARGB value of #FF98FB98.
Signature
1 | |
Return Value
Color
PaleTurquoise
Summary
Gets a system-defined color that has an ARGB value of #FFAFEEEE.
Signature
1 | |
Return Value
Color
PaleVioletRed
Summary
Gets a system-defined color that has an ARGB value of #FFDB7093.
Signature
1 | |
Return Value
Color
PapayaWhip
Summary
Gets a system-defined color that has an ARGB value of #FFFFEFD5.
Signature
1 | |
Return Value
Color
PeachPuff
Summary
Gets a system-defined color that has an ARGB value of #FFFFDAB9.
Signature
1 | |
Return Value
Color
Peru
Summary
Gets a system-defined color that has an ARGB value of #FFCD853F.
Signature
1 | |
Return Value
Color
Pink
Summary
Gets a system-defined color that has an ARGB value of #FFFFC0CB.
Signature
1 | |
Return Value
Color
Plum
Summary
Gets a system-defined color that has an ARGB value of #FFDDA0DD.
Signature
1 | |
Return Value
Color
PowderBlue
Summary
Gets a system-defined color that has an ARGB value of #FFB0E0E6.
Signature
1 | |
Return Value
Color
Purple
Summary
Gets a system-defined color that has an ARGB value of #FF800080.
Signature
1 | |
Return Value
Color
Red
Summary
Gets a system-defined color that has an ARGB value of #FFFF0000.
Signature
1 | |
Return Value
Color
RosyBrown
Summary
Gets a system-defined color that has an ARGB value of #FFBC8F8F.
Signature
1 | |
Return Value
Color
RoyalBlue
Summary
Gets a system-defined color that has an ARGB value of #FF4169E1.
Signature
1 | |
Return Value
Color
SaddleBrown
Summary
Gets a system-defined color that has an ARGB value of #FF8B4513.
Signature
1 | |
Return Value
Color
Salmon
Summary
Gets a system-defined color that has an ARGB value of #FFFA8072.
Signature
1 | |
Return Value
Color
SandyBrown
Summary
Gets a system-defined color that has an ARGB value of #FFF4A460.
Signature
1 | |
Return Value
Color
SeaGreen
Summary
Gets a system-defined color that has an ARGB value of #FF2E8B57.
Signature
1 | |
Return Value
Color
SeaShell
Summary
Gets a system-defined color that has an ARGB value of #FFFFF5EE.
Signature
1 | |
Return Value
Color
Sienna
Summary
Gets a system-defined color that has an ARGB value of #FFA0522D.
Signature
1 | |
Return Value
Color
Silver
Summary
Gets a system-defined color that has an ARGB value of #FFC0C0C0.
Signature
1 | |
Return Value
Color
SkyBlue
Summary
Gets a system-defined color that has an ARGB value of #FF87CEEB.
Signature
1 | |
Return Value
Color
SlateBlue
Summary
Gets a system-defined color that has an ARGB value of #FF6A5ACD.
Signature
1 | |
Return Value
Color
SlateGray
Summary
Gets a system-defined color that has an ARGB value of #FF708090.
Signature
1 | |
Return Value
Color
Snow
Summary
Gets a system-defined color that has an ARGB value of #FFFFFAFA.
Signature
1 | |
Return Value
Color
SpringGreen
Summary
Gets a system-defined color that has an ARGB value of #FF00FF7F.
Signature
1 | |
Return Value
Color
SteelBlue
Summary
Gets a system-defined color that has an ARGB value of #FF4682B4.
Signature
1 | |
Return Value
Color
Tan
Summary
Gets a system-defined color that has an ARGB value of #FFD2B48C.
Signature
1 | |
Return Value
Color
Teal
Summary
Gets a system-defined color that has an ARGB value of #FF008080.
Signature
1 | |
Return Value
Color
Thistle
Summary
Gets a system-defined color that has an ARGB value of #FFD8BFD8.
Signature
1 | |
Return Value
Color
Tomato
Summary
Gets a system-defined color that has an ARGB value of #FFFF6347.
Signature
1 | |
Return Value
Color
Turquoise
Summary
Gets a system-defined color that has an ARGB value of #FF40E0D0.
Signature
1 | |
Return Value
Color
Violet
Summary
Gets a system-defined color that has an ARGB value of #FFEE82EE.
Signature
1 | |
Return Value
Color
Wheat
Summary
Gets a system-defined color that has an ARGB value of #FFF5DEB3.
Signature
1 | |
Return Value
Color
White
Summary
Gets a system-defined color that has an ARGB value of #FFFFFFFF.
Signature
1 | |
Return Value
Color
WhiteSmoke
Summary
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
Signature
1 | |
Return Value
Color
Yellow
Summary
Gets a system-defined color that has an ARGB value of #FFFFFF00.
Signature
1 | |
Return Value
Color
YellowGreen
Summary
Gets a system-defined color that has an ARGB value of #FF9ACD32.
Signature
1 | |
Return Value
Color
Fields
Empty
Summary
Represents empty color.
Signature
1 | |
Return Value
Color