c sharp

How do I get the color from a hexadecimal color code using .NET?

A
Desh-Duniya Team Author
| Published June 26, 2019
string colorcode = "#FFFFFF00";
int argb = Int32.Parse(colorcode.Replace("#", ""), NumberStyles.HexNumber);
Color clr = Color.FromArgb(argb);

Discussion (0)

Please sign in to participate in the discussion.
No comments yet. Be the first to join the conversation!