C-Sharp Color Name Table

Материал из Wiki Test Lab
Перейти к: навигация, поиск

Назад    Главная

C# Color Name Table.

The following color codes are taken from the HTML specifications, whose names correspond to the names given for the .KnownColor attributes. For example, to get one of these color schemes, you would write

Color c = Color.FromKnownColor(KnownColor.colorname) where colorname is from the table below. The values are also supplied; so you could use the FromArgb method to create the color. The following two lines produce the same color:

Color c1 = Color.FromArgb(32,178,170); Color c2 = Color.FromKnownColor(KnownColor.LightSeaGreen); In the table, I have assigned the exact color values given. The rendering you actually see will depend upon whether or not your browser honors 24-bit color requests (some browsers will map colors to the "nearest Web palette color"), the adjustments to your monitor, and the corrections your video card applies. Your Mileage May Vary.

Читать дальше...

Личные инструменты