2011-09-23 103 views
-1

我需要从我的应用程序发送图像,在Photoshop中进行编辑并将其返回。在Photoshop中编辑图像

我的应用程序应该等到Photoshop文档关闭。

任何想法请。

回答

0

如果知道文件名,则可以检查日期戳记,直到它处于编辑开始之后。您还应该检查文件属性并确保PhotoShop没有打开该文件。

您可以使用计时器来检查每隔几秒钟,而不是不停地检查哪些会减慢系统。

0
Process.Start(Path.Combine(path, "image.psd")); 
1

事情是这样的..

MyProcess myProcess = new MyProcess(); 

myProcess.Start("photoshop.exe", "C:\\myImages\\image.jpg"); 

while (!myProcess.HasExited) { 
// Do nothing while waiting.. Sleep for a few seconds might be a good idea 
} 

// Will be executed when process is closed. 
1
Process.Start("pathtoshotoshop.exe", "someimage.jpg").WaitForExit() 
+0

你的解决方案是整洁:) – StefanE