在 Photoshop 中编辑图像

发布于 2024-12-06 05:05:07 字数 106 浏览 1 评论 0原文

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

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

任何想法请。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

萌︼了一个春 2024-12-13 05:05:07

像这样的东西..

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.

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.
紫南 2024-12-13 05:05:07
Process.Start("pathtoshotoshop.exe", "someimage.jpg").WaitForExit()
Process.Start("pathtoshotoshop.exe", "someimage.jpg").WaitForExit()
滥情空心 2024-12-13 05:05:07

如果您知道文件名,则可以在编辑开始之前检查日期戳。您还应该检查文件属性并确保该文件尚未被 PhotoShop 打开。

您可以使用计时器每隔几秒检查一次,而不是不断检查,这会减慢系统速度。

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.

就像说晚安 2024-12-13 05:05:07
Process.Start(Path.Combine(path, "image.psd"));
Process.Start(Path.Combine(path, "image.psd"));
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文