How can I get a color from a hexadecimal color code (e.g. #FFDFD991)?
#FFDFD991
I am reading a file and am getting a hexadecimal color code. I need to create the
WPF:
using System.Windows.Media; //hex to color Color color = (Color)ColorConverter.ConvertFromString("#7AFF7A7A"); //color to hex string hexcolor = color.ToString();