我在C#中引用了PhotoShop cs5对象库COM,但我不知道应该使用什么类型的“ducument.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 ?
答案 0 :(得分: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方法。它还列出了参数及其类型。