摘要:
1,AGRB字符串"#FF00AFDB"转Color法一:System.Drawing.ColorTranslator类Color color = ColorTranslator.FromHtml("#FF00AFDB");ColorTranslator还可以将Color转成Html的颜色代码,但是Alpha值将会丢失,如"#FF00AFDB"将会变成"#00AFDB"法二:System.Drawing.ColorConverter类ColorConverter colorConverter = new Color 阅读全文