2010-04-27 25 views

cevap

9

Sen photoshop ile bir takvim yapma iyi bir örnek vardır görüntünüzü arama ve bir katman

file = app.openDialog();//opens dialog,choose one image 

if(file[0]){ //if you have chosen an image 
    app.load(file[0]); //load it into documents 
    backFile= app.activeDocument; //prepare your image layer as active document 
    backFile.resizeImage(width,height); //resize image into given size i.e 640x480 
    backFile.selection.selectAll(); 
    backFile.selection.copy(); //copy image into clipboard 
    backFile.close(SaveOptions.DONOTSAVECHANGES); //close image without saving changes 
    doc.paste(); //paste selection into your document 
    doc.layers[0].name = "BackgroundImage"; //set your layer's name 
} 

içine eklemek için Photoshop Dosyası Dialog açabilirsiniz javascript uzantısı (.jsx).

Lütfen şu kontrol edin: here

İlgili konular