System.Drawing.Color 有一个 ToArgb() 方法来返回颜色的 Int 表示。
在 Silverlight 中,我认为我们必须使用 System.Windows.Media.Color。它有 A、R、G、B 成员,但没有返回单个值的方法。
如何实现 ToArgb()?在 System.Drawing.Color 中,ToArgb() 由
return (int) this.Value;
System.Windows.Media.Color 有一个 FromArgb(byte A, byte R, byte G, byte B) 方法。如何分解 ToArgb() 返回的 Int 以与 FromArgb() 一起使用?
感谢您的任何指点...