HTML Colors in C#

html-color-wheel

There are many ways to specify HTML color codes in C#. The .net framework has a great object for dealing with colors called Color. Here are some of the ways that you can create a Color object. // if you have an HTML string var lightGray = System.Drawing.ColorTranslator.FromHtml(“#D3D3D3”); // if you have 3 hex numbers var lightGray = System.Drawing.Color.FromArgb(0xD3, 0xD3,

Read more

C# Color Object

color-wheel

The C# Color Object is a very convenient way of storing colors in your C# projects. Once you have a Color object you can easily get the RGB and HSB values out of it. Understanding the Color object is important if you are learning to do any C# work that involves colors. Creating Color Objects If you have an HTML

Read more
1 2 3 5