Open image in Windows Photo Viewer

前端 未结 3 1505
萌比男神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-06 00:13

    Start it in a new Process

    Process photoViewer = new Process();
    photoViewer.StartInfo.FileName = @"The photo viewer file path";
    photoViewer.StartInfo.Arguments = @"Your image file path";
    photoViewer.Start();
    

提交回复
热议问题