Convert hex color to .net Color object
The syntax for using the ColorTranslator to convert a hex value:Color black = ColorTranslator.FromHtml("#000000");
Because it took me more than a minute to find, I decided to post it for future reference…
Color black = ColorTranslator.FromHtml("#000000");
Because it took me more than a minute to find, I decided to post it for future reference…
No comments:
Post a Comment