Open image in Windows Photo Viewer

前端 未结 3 1497
萌比男神i
萌比男神i 2020-12-05 23:09

How to open .jpg image in Windows Photo Viewer from C# app?

Not inside app like this code,

FileStream stream = new FileStream(\"test.p         


        
3条回答
  •  暖寄归人
    2020-12-05 23:49

    I think you can just use:

    Process.Start(@"C:\MyPicture.jpg");
    

    And this will use the standard file viewer associated with .jpg files - by default the windows picture viewer.

提交回复
热议问题