2011-10-14 36 views
2

我引用PhotoShop cs5對象C#中的庫COM,但我不知道什麼類型的「ducument.add()」我應該使用!什麼類型的photoshop 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 ? 

回答