Photoshop Document.add 是什么类型?
我在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 ?
I referenced PhotoShop cs5 object Library COM in C#,but I don't know what type of "document.add()" I should use!
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 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(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 方法。它还列出了参数及其类型。
Get the appropriate Reference for your version of Photoshop here:
http://www.adobe.com/devnet/photoshop/scripting.html
In the JavaScript Reference for CS5
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_javascript_ref.pdf
Pg 104 lists the add method for the Documents object. It also lists the parameters and their types.