Re: [Gimp-developer] copy-paste: position shift with alpha images

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

 



Hi,

Jeff Trefftzs <trefftzs@xxxxxxxx> writes:


> making sure that the layer from which you get your selection is the
> same size as the image, using (perl-fu-layer-to-image-size 1) .
> This works on the active layer only, and may not work on windows
> systems lacking perl-fu support.

oh, come on. calling perl to resize the layer to the image size is a
bit of an overkill if it can also be done in one or two lines of
scheme. The following code is untested, but might actually work:

  (gimp-layer-resize layer (car (gimp-image-width image))
                           (car (gimp-image-height image))
                           (- (car (gimp-layer-offsets layer)))
                           (- (cadr (gimp-layer-offsets layer))))


Salut, Sven

[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