2011-09-23 100 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