Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 什么类型的photoshop文档。添加?_C#_Photoshop_Photoshop Script - Fatal编程技术网

C# 什么类型的photoshop文档。添加?

C# 什么类型的photoshop文档。添加?,c#,photoshop,photoshop-script,C#,Photoshop,Photoshop Script,我在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.mis

我在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 ?

在此处获取适用于您的Photoshop版本的参考资料:

在CS5的JavaScript参考中 第104页列出了Documents对象的add方法。它还列出了参数及其类型