paleta hexadecimal fromargb from crear colores color clase c# colors rgb system.drawing.color

hexadecimal - C#Constante de color Valores R, G, B



system drawing color fromargb c# (3)

Ejecute este programa:

using System; using System.Drawing; using System.Reflection; public class Test { static void Main() { var props = typeof(Color).GetProperties(BindingFlags.Public | BindingFlags.Static); foreach (PropertyInfo prop in props) { Color color = (Color) prop.GetValue(null, null); Console.WriteLine("Color.{0} = ({1}, {2}, {3})", prop.Name, color.R, color.G, color.B); } } }

O alternativamente:

using System; using System.Drawing; public class Test { static void Main() { foreach (KnownColor known in Enum.GetValues(typeof(KnownColor))) { Color color = Color.FromKnownColor(known); Console.WriteLine("Color.{0} = ({1}, {2}, {3})", known, color.R, color.G, color.B); } } }

¿Dónde puedo encontrar una lista de todas las constantes de color C # y los valores R, G, B (rojo, verde, azul) asociados?

p.ej

Color.Blanco == (255,255,255)

Color.Black == (0,0,0)

etc ...