[FIXED] Welche Art von Photoshop -Dokument.add?

Ausgabe

Ich habe auf die PhotoShop cs5-Objektbibliothek COM in C# verwiesen, aber ich weiß nicht, welche Art von “document.add()” ich verwenden soll!

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 ?

Lösung

Holen Sie sich die entsprechende Referenz für Ihre Version von Photoshop hier:
http://www.adobe.com/devnet/photoshop/scripting.html

In der JavaScript-Referenz für CS5
http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/photoshop/pdfs/photoshop_cs5_javascript_ref.pdf
Pg 104 wird die add-Methode für das Documents-Objekt aufgeführt.
Es listet auch die Parameter und ihre Typen auf.


Beantwortet von –
Kevin Scharnhorst


Antwort geprüft von –
Marie Seifert (FixError Admin)

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like