Return image from exe

2019-07-29 09:36发布

I have an exe (i have the code for that exe) where i invoke the camera. Now i want the image captured in my application(ie..the picturebox control) I am ivoking that exe in my application(the application is in vb script). Can we return image from exe to my application(the application is in vb script)... if yes how?

标签: c#
2条回答
老娘就宠你
2楼-- · 2019-07-29 09:58

The easy way is to use a file location to (temprarily) store the images, and configure that path in both applications.

Another option would be to use WCF (or COM) to let the camera app act as a server

查看更多
Explosion°爆炸
3楼-- · 2019-07-29 10:09

If you have to code, why not put it in the application that you want the image in?

If that is not possible, save the image file to location on the drive and then monitor it using a FileSystemWatcher control. Once you have retrieved the file from the location and processed it you can delete it.

查看更多
登录 后发表回答