如何在c#中打开Windows Photo Viewer中的二进制图像数据?

时间:2014-06-17 23:20:27

标签: c# wpf image imagesource

我想通过我的c#代码在Windows Photo Viewer中打开存储在数据库中的图像文件。我知道如何在图像文件路径已知时打开图像文件

  

System.Diagnostics.Process.Start(" C:\ image.png&#34)

但我不想在本地保存图片。如果我有ImageSource,有没有办法在Windows Photo Viewer中显示图像?

  

ImageSource image = new ImageSourceConverter()。ConvertFrom(imageByteArray)as ImageSource;

0 个答案:

没有答案