开发者

Edit Image in Photoshop [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_StackOverflow Closed 11 years ago.

I need to send an image from my application, edit it in Photoshop and return it back.

My application should wait until the Photoshop Document is closed.

Any ideas please.


Something like this..

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.


Process.Start("pathtoshotoshop.exe", "someimage.jpg").WaitForExit()


If you know the file name, you can check the date stamp until it's after the edit starts. You should also check the file attributes and make sure the file is not still open by PhotoShop.

You can use a timer to check every few seconds, instead of checking constantly which would slow down the system.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜