2

我在 C# 中引用了 PhotoShop cs5 对象库 COM,但我不知道应该使用哪种类型的“document.add()”!

Photoshop.ApplicationClass app = new ApplicationClass();// start ps engine
app.Load(openFileDialog1.FileName);       //load image with ps engine   
app.Documents.Add([Object.Width == Type.missing],// Anybody knows ? 
                  [Object.Height== Type.missing],//what type of these params?
                  [Object.Resolution== Type.missing],//type ?
                  [Object.Name== Type.missing],//type ?
                  [Object.PixelAspectRatio== Type.missing],//type ?
                  [Object.Mode== Type.missing],//type ?
                  [Object.InitialFill== Type.missing],//type ?
                  [Object.BitsPerChannel== Type.missing],//type ?
                  [Object.ColorProfileName == Type.missing])//type ?
4

1 回答 1

1

在此处获取适用于您的 Photoshop 版本的参考:http: //www.adobe.com/devnet/photoshop/scripting.html

在 CS5 的 JavaScript 参考 http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_javascript_ref.pdf 第 104 页列出了 Documents 对象的 add 方法。它还列出了参数及其类型。

于 2012-06-29T21:18:57.150 回答