如何将System.Windows.Controls.image转换为System.Drawing.Icon c#

如何将System.Windows.Controls.image转换为System.Drawing.Icon c#,c#,C#,我有这些照片 var a = new System.Windows.Controls.Image() { Source = new BitmapImage(new Uri(@"/Accounts;component/Resources/close.png", UriKind.Relative)) }; 我需要把它转换成system.drawing.icon有什么办法吗?它不是图像到iconI我在谷歌搜索时得到了这个链接

我有这些照片

var a = new System.Windows.Controls.Image() { Source = new BitmapImage(new Uri(@"/Accounts;component/Resources/close.png", UriKind.Relative)) };

我需要把它转换成system.drawing.icon有什么办法吗?

它不是图像到iconI我在谷歌搜索时得到了这个链接