Quoting David Hodson <[EMAIL PROTECTED]>:

> What is the correct way to copy a layer from one image to another, using
> the API?

I am not certain of its correctness, but I would use the PDB function  

In Script-fu:

(define new-layer (car (gimp-layer-new-from-drawable source-layer  

(gimp-image-add-layer destination-image new-layer position)

'position' is the location in the layerstack (0=top; -1 means place  
the new layer above the active layer). Note that any layermask will  
also be copied and that the original layermode is retained.

Gimp-developer mailing list

Reply via email to