Table of Contents

Struct Color

Namespace
System.Drawing
Assembly
nanoFramework.Graphics.Core.dll

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

public readonly struct Color
Inherited Members

Properties

A

Gets the alpha component value of this Color structure.

public byte A { get; }

Property Value

byte

AliceBlue

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

public static Color AliceBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

AntiqueWhite

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

public static Color AntiqueWhite { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Aqua

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

public static Color Aqua { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Aquamarine

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

public static Color Aquamarine { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Azure

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

public static Color Azure { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

B

Gets the blue component value of this Color structure.

public byte B { get; }

Property Value

byte

Beige

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

public static Color Beige { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Bisque

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

public static Color Bisque { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Black

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

public static Color Black { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

BlanchedAlmond

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

public static Color BlanchedAlmond { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Blue

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

public static Color Blue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

BlueViolet

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

public static Color BlueViolet { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Brown

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

public static Color Brown { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

BurlyWood

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

public static Color BurlyWood { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

CadetBlue

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

public static Color CadetBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Chartreuse

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

public static Color Chartreuse { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Chocolate

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

public static Color Chocolate { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Coral

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

public static Color Coral { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

CornflowerBlue

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

public static Color CornflowerBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Cornsilk

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

public static Color Cornsilk { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Crimson

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

public static Color Crimson { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Cyan

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

public static Color Cyan { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkBlue

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

public static Color DarkBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkCyan

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

public static Color DarkCyan { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkGoldenrod

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

public static Color DarkGoldenrod { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkGray

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

public static Color DarkGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkGreen

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

public static Color DarkGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkKhaki

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

public static Color DarkKhaki { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkMagenta

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

public static Color DarkMagenta { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkOliveGreen

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

public static Color DarkOliveGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkOrange

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

public static Color DarkOrange { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkOrchid

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

public static Color DarkOrchid { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkRed

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

public static Color DarkRed { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkSalmon

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

public static Color DarkSalmon { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkSeaGreen

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

public static Color DarkSeaGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkSlateBlue

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

public static Color DarkSlateBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkSlateGray

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

public static Color DarkSlateGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkTurquoise

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

public static Color DarkTurquoise { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DarkViolet

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

public static Color DarkViolet { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DeepPink

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

public static Color DeepPink { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DeepSkyBlue

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

public static Color DeepSkyBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DimGray

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

public static Color DimGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

DodgerBlue

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

public static Color DodgerBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Firebrick

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

public static Color Firebrick { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

FloralWhite

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

public static Color FloralWhite { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

ForestGreen

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

public static Color ForestGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Fuchsia

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

public static Color Fuchsia { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

G

Gets the green component value of this Color structure.

public byte G { get; }

Property Value

byte

Gainsboro

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

public static Color Gainsboro { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

GhostWhite

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

public static Color GhostWhite { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Gold

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

public static Color Gold { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Goldenrod

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

public static Color Goldenrod { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Gray

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

public static Color Gray { get; }

Property Value

Color

A System.Drawing.Color structure representing a system-defined color.

Green

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

public static Color Green { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

GreenYellow

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

public static Color GreenYellow { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Honeydew

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

public static Color Honeydew { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

HotPink

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

public static Color HotPink { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

IndianRed

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

public static Color IndianRed { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Indigo

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

public static Color Indigo { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Ivory

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

public static Color Ivory { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Khaki

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

public static Color Khaki { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Lavender

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

public static Color Lavender { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LavenderBlush

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

public static Color LavenderBlush { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LawnGreen

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

public static Color LawnGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LemonChiffon

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

public static Color LemonChiffon { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightBlue

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

public static Color LightBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightCoral

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

public static Color LightCoral { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightCyan

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

public static Color LightCyan { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightGoldenrodYellow

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

public static Color LightGoldenrodYellow { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightGray

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

public static Color LightGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightGreen

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

public static Color LightGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightPink

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

public static Color LightPink { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightSalmon

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

public static Color LightSalmon { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightSeaGreen

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

public static Color LightSeaGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightSkyBlue

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

public static Color LightSkyBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightSlateGray

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

public static Color LightSlateGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightSteelBlue

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

public static Color LightSteelBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LightYellow

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

public static Color LightYellow { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Lime

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

public static Color Lime { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

LimeGreen

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

public static Color LimeGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Linen

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

public static Color Linen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Magenta

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

public static Color Magenta { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Maroon

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

public static Color Maroon { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumAquamarine

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

public static Color MediumAquamarine { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumBlue

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

public static Color MediumBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumOrchid

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

public static Color MediumOrchid { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumPurple

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

public static Color MediumPurple { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumSeaGreen

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

public static Color MediumSeaGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumSlateBlue

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

public static Color MediumSlateBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumSpringGreen

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

public static Color MediumSpringGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumTurquoise

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

public static Color MediumTurquoise { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MediumVioletRed

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

public static Color MediumVioletRed { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MidnightBlue

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

public static Color MidnightBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MintCream

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

public static Color MintCream { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

MistyRose

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

public static Color MistyRose { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Moccasin

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

public static Color Moccasin { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

NavajoWhite

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

public static Color NavajoWhite { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Navy

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

public static Color Navy { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

OldLace

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

public static Color OldLace { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Olive

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

public static Color Olive { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

OliveDrab

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

public static Color OliveDrab { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Orange

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

public static Color Orange { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

OrangeRed

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

public static Color OrangeRed { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Orchid

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

public static Color Orchid { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PaleGoldenrod

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

public static Color PaleGoldenrod { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PaleGreen

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

public static Color PaleGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PaleTurquoise

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

public static Color PaleTurquoise { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PaleVioletRed

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

public static Color PaleVioletRed { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PapayaWhip

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

public static Color PapayaWhip { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PeachPuff

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

public static Color PeachPuff { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Peru

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

public static Color Peru { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Pink

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

public static Color Pink { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Plum

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

public static Color Plum { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

PowderBlue

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

public static Color PowderBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Purple

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

public static Color Purple { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

R

Gets the red component value of this Color structure.

public byte R { get; }

Property Value

byte

Red

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

public static Color Red { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

RosyBrown

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

public static Color RosyBrown { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

RoyalBlue

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

public static Color RoyalBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SaddleBrown

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

public static Color SaddleBrown { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Salmon

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

public static Color Salmon { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SandyBrown

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

public static Color SandyBrown { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SeaGreen

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

public static Color SeaGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SeaShell

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

public static Color SeaShell { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Sienna

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

public static Color Sienna { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Silver

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

public static Color Silver { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SkyBlue

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

public static Color SkyBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SlateBlue

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

public static Color SlateBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SlateGray

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

public static Color SlateGray { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Snow

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

public static Color Snow { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SpringGreen

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

public static Color SpringGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

SteelBlue

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

public static Color SteelBlue { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Tan

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

public static Color Tan { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Teal

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

public static Color Teal { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Thistle

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

public static Color Thistle { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Tomato

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

public static Color Tomato { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Transparent

Gets a system-defined color.

public static Color Transparent { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Turquoise

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

public static Color Turquoise { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Violet

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

public static Color Violet { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Wheat

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

public static Color Wheat { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

White

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

public static Color White { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

WhiteSmoke

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

public static Color WhiteSmoke { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Yellow

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

public static Color Yellow { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

YellowGreen

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

public static Color YellowGreen { get; }

Property Value

Color

A System.Drawing.Color representing a system-defined color.

Methods

Equals(object)

Indicates whether the current object is equal to another object of the same type.

public override bool Equals(object other)

Parameters

other object

An object to compare with this object.

Returns

bool

true if the current object is equal to other; otherwise, false.

FromArgb(int)

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

public static Color FromArgb(int argb)

Parameters

argb int

A value specifying the 32-bit ARGB value.

Returns

Color

The System.Drawing.Color structure that this method creates.

FromArgb(int, Color)

Creates a System.Drawing.Color structure from the specified System.Drawing.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.

public static Color FromArgb(int alpha, Color baseColor)

Parameters

alpha int

The alpha value for the new System.Drawing.Color. Valid values are 0 through 255.

baseColor Color

The System.Drawing.Color from which to create the new System.Drawing.Color.

Returns

Color

The System.Drawing.Color that this method creates.

FromArgb(int, int, int)

Creates a System.Drawing.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.

public static Color FromArgb(int r, int g, int b)

Parameters

r int

The red component value for the new System.Drawing.Color. Valid values are 0 through 255.

g int

The green component value for the new System.Drawing.Color. Valid values are 0 through 255.

b int

The blue component value for the new System.Drawing.Color. Valid values are 0 through 255.

Returns

Color

The System.Drawing.Color structure that this method creates.

FromArgb(int, int, int, int)

Creates a System.Drawing.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.

public static Color FromArgb(int a, int r, int g, int b)

Parameters

a int

The alpha component value for the new System.Drawing.Color. Valid values are 0 through 255.

r int

The red component value for the new System.Drawing.Color. Valid values are 0 through 255.

g int

The green component value for the new System.Drawing.Color. Valid values are 0 through 255.

b int

The blue component value for the new System.Drawing.Color. Valid values are 0 through 255.

Returns

Color

The System.Drawing.Color structure that this method creates.

FromHex(string)

Convert String into an Color struct.

public static Color FromHex(string hexString)

Parameters

hexString string

Color String. Allowed formats are #AARRGGBB #RRGGBB #ARGB #RGB.

Returns

Color

Returns an Color struct otherwise throws an exception.

FromName(string)

Converts a known Color name into a Color.

public static Color FromName(string colorName)

Parameters

colorName string

The known color name.

Returns

Color

The color or null if not found.

Exceptions

ArgumentException

Color not found.

GetBrightness()

Gets the hue-saturation-lightness (HSL) lightness value for this Color structure.

public float GetBrightness()

Returns

float

The lightness of this Color. The lightness ranges from 0.0 through 1.0, where 0.0 represents black and 1.0 represents white.

GetFromString(string)

Convert String with a known color name into an Color struct.

public static Color GetFromString(string color)

Parameters

color string

The name of the color.

Returns

Color

A color.

GetHashCode()

Returns a hash code for this System.Drawing.Color structure.

public override int GetHashCode()

Returns

int

An integer value that specifies the hash code for this System.Drawing.Color.

GetHue()

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

public float GetHue()

Returns

float

The hue, in degrees, of this Color. The hue is measured in degrees, ranging from 0.0 through 360.0, in HSL color space.

GetSaturation()

Gets the hue-saturation-lightness (HSL) saturation value for this Color structure.

public float GetSaturation()

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.

To12bppRgb444()

Gets the 12-bits per pixel value of this color. All color components are encoded with 4 bits.

public ushort To12bppRgb444()

Returns

ushort

The 12-bit-per-pixel RGB444 value of the specified Color

To1bpp()

Gets a value representing this color as On/Off.

public byte To1bpp()

Returns

byte

The 1-bit-per-pixel value of the specified Color

To4bppGrayscale()

Gets the 4-bits per pixel grayscale value of this color.

public byte To4bppGrayscale()

Returns

byte

The 4-bit-per-pixel grayscale value of the specified Color

To8bppGrayscale()

Gets the 8-bits per pixel grayscale value of this color.

public byte To8bppGrayscale()

Returns

byte

The 8-bit-per-pixel grayscale value of the specified Color

To8bppRgb332()

Gets the 8-bits per pixel value of this color. Colors are encoded in 3 bits for red, 3 bits for green and 2 bits for blue.

public byte To8bppRgb332()

Returns

byte

The 8-bit-per-pixel RGB332 value of the specified Color

ToArgb()

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

public int ToArgb()

Returns

int

The 32-bit ARGB value of this System.Drawing.Color.

ToBgr565()

Gets a BGR565 value of this color structure.

public ushort ToBgr565()

Returns

ushort

A BGR565 encoded color.

ToRgbFormat(ColorOrder, byte, byte, byte)

Gets a RGB space color conversion in any order with any byte per color.

public uint ToRgbFormat(ColorOrder order, byte numR, byte numG, byte numB)

Parameters

order ColorOrder

The color order.

numR byte

The number of bits for the R component.

numG byte

The number of bits for the G component.

numB byte

The number of bits for the B component.

Returns

uint

Thz space encoded color scheme with the requested number of bits per component.

Exceptions

ArgumentException

Not valid number of bits, it should be less or equal to 8.

ArgumentException

RGB Scheme not supported.

ToString()

Gets the color in standard HEX format

public override string ToString()

Returns

string

The standard HEX string.

TryGetColor(string, out Color)

Tries to convert a string into a color either from a color name either from a HEX representation.

public static bool TryGetColor(string strColor, out Color color)

Parameters

strColor string

The string to convert.

color Color

The color.

Returns

bool

A color.

Operators

operator ==(Color, Color)

Tests whether two specified System.Drawing.Color structures are equivalent.

public static bool operator ==(Color left, Color right)

Parameters

left Color

The System.Drawing.Color that is to the left of the equality operator.

right Color

The System.Drawing.Color that is to the right of the equality operator.

Returns

bool

true if the two System.Drawing.Color structures are equal; otherwise, false.

operator !=(Color, Color)

Tests whether two specified System.Drawing.Color structures are different.

public static bool operator !=(Color left, Color right)

Parameters

left Color

The System.Drawing.Color that is to the left of the inequality operator.

right Color

The System.Drawing.Color that is to the right of the inequality operator.

Returns

bool

true if the two System.Drawing.Color structures are different; otherwise, false.