How to create a System.Drawing.Color from its hexadecimal RGB string?
ColorTranslator.FromHtml("#FF00FF");
You can use the System.Drawing.ColorTranslator static method FromHtml.
use:
System.Drawing.ColorTranslator.FromHtml("#FFFFFF");
ColorTranslator.FromHtml("#FF00FF");
You can use the System.Drawing.ColorTranslator static method FromHtml.
use:
System.Drawing.ColorTranslator.FromHtml("#FFFFFF");