System.Drawing.Icon icon = System.Drawing.Icon.ExtractAssociatedIcon(str_ExePath);
System.Windows.Interop.Imaging.CreateBitmapSourceFromHIcon(
                                icon.Handle,
                                new Int32Rect(0, 0, icon.Width, icon.Height),
                                System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions());

返回类型 System.Windows.Media.Imaging.BitmapSource

相关文章:

  • 2021-10-16
  • 2022-12-23
  • 2021-05-30
  • 2021-06-16
  • 2021-11-11
  • 2021-09-04
  • 2022-12-23
  • 2021-07-30
猜你喜欢
  • 2022-12-23
  • 2021-07-19
  • 2021-06-20
  • 2022-12-23
  • 2021-06-23
  • 2022-12-23
相关资源
相似解决方案