Re: Copy layer betwen images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



saulgoode@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx wrote:
> Quoting David Hodson <hodsond@xxxxxxxxxxxxxx>:

>>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
_______________________________________________
Gimp-developer mailing list
Gimp-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

[Index of Archives]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [GIMP for Windows]     [KDE]     [GEGL]     [Gimp's Home]     [Gimp on GUI]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux