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

2002-10-30 Thread Martin Bernreuther
Hello,

I just wantet to copy a rectangle area from a source-layer to a target layer
of an image. That's what I done first:

(gimp-rect-select image 0 0 layer-width height REPLACE FALSE 0)
(gimp-edit-copy source-layer)
(let ((floating-sel (car (gimp-edit-paste target-layer FALSE 
(gimp-floating-sel-anchor floating-sel))

This works for a lot of cases BUT if I have an image showing a figure on
a transparent background (with alpha channel), something strange happens:
The position of the figure on the target-layer is shifted
(an the only the figure itself is selected)
It only works if the bounding box of the visible parts equal the selection.
I got the same results using the GUI (also with select-all).

How can I avoid this?

Is there a faster way to transfer the layer contents to another layer,
avoiding the intermediate step of the buffer?

Thanks
Martin
-- 
__
Martin Bernreuther  [EMAIL PROTECTED]

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer



[Gimp-developer] script-fu-scheme: Full implementation of Scheme?

2002-10-30 Thread Martin Bernreuther
Hello,

the tutorials I found cover a small portion of the Scheme language.
Often there's not even a conditional call (if) or loop like (while) explained
(but they are nice introductions!).

At
http://www.swiss.ai.mit.edu/projects/scheme/documentation/scheme.html
there's a reference manual, but I didn't manage to get some functions... to 
work. How about e.g. the (do) statement or
(floor -4.3)
(round -4.3)at scheme_5.html#SEC56
..? It didn't work at the GIMP 1.2.3 script-fu console

Is there a reference manual of the script-fu implemented Scheme?

Thanks
Martin
-- 
__
Martin Bernreuther  [EMAIL PROTECTED]

___
Gimp-developer mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-developer