[Gimp-developer] Copy layer betwen images

David Hodson hodsond at ozemail.com.au
Sun Apr 29 21:23:08 PDT 2007


saulgoode at flashingtwelve.brickfilms.com wrote:
> Quoting David Hodson <hodsond at ozemail.com.au>:

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

> (define new-layer (car (gimp-layer-new-from-drawable source-layer  
> destination-image)))
> 
> (gimp-image-add-layer destination-image new-layer position)

Great, that seems to do the trick. Thanks.

-- 
David Hodson  --  this night wounds time


More information about the Gimp-developer mailing list