摘要:
ToArgbColor c = Colors.Yellow;string s = c.ToString().TrimStart('#');int argb = Int32.Parse(s.ToString(), System.Globalization.NumberStyles.HexNumber); FromArgbColor.FromArgb(BitConverter.GetBytes(intVal));// or if that doesn't work var bytes = BitConverter.GetBytes(intVal); Color.FromAr 阅读全文