WinForm中的Color( System.Drawing.Color)与Wpf中Color(System.Windows.Media.Color)互转

System.Drawing.Color drawColor= System.Drawing.Color.FromArgb(255,102,102,30);

System.Widnows.Media.Color  mediaColor=System.Widnows.Media.Color.FromArgb(drawColor.A,drawColor.R,drawColor.G,drawColor.B);



你可能感兴趣的:(WinForm中的Color( System.Drawing.Color)与Wpf中Color(System.Windows.Media.Color)互转)