public static Color GetColor(string htmlColor) {
return Color.FromArgb(255,
Convert.ToByte(htmlColor.Substring(1, 2), 16),
Convert.ToByte(htmlColor.Substring(3, 2), 16),
Convert.ToByte(htmlColor.Substring(5, 2), 16)
);
}
No comments:
Post a Comment