Html互转:
string c1 = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.Red);
System.Drawing.Color c2 = System.Drawing.ColorTranslator.FromHtml("#ff0000");
Html互转:
string c1 = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.Red);
System.Drawing.Color c2 = System.Drawing.ColorTranslator.FromHtml("#ff0000");
转载于:https://www.cnblogs.com/LCLBook/p/11236490.html