C#颜色转换

Html互转:

string c1 = System.Drawing.ColorTranslator.ToHtml(System.Drawing.Color.Red);

 

System.Drawing.Color c2 = System.Drawing.ColorTranslator.FromHtml("#ff0000");

posted @ 2019-07-24 10:43  搬砖的L先生  阅读(596)  评论(0编辑  收藏  举报