Question: Is it possible to implement colors in Hex (ex: "#fafad2" with the System.Drawing.Color NameSpace OR are the system-defined colors the only ones available?
int red = Convert.ToInt32("FF", 16);
int blue = Convert.ToInt32("FF", 16);
int green = Convert.ToInt32("FF", 16);
System.Drawing.Color.FromArgb(red, blue, green);
I think. The 16 value is the base from which to convert the string value. In this case, obv 16 == hex.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.