[REBOL] Re: Capturing transparent faces.
From: antonr:lexicon at: 27-Jun-2005 18:56
Hmm, you are right. This is going to need some
more investigation and probably will go into
(I think I remember this problem from years ago...)
A possible workaround *may* be to do it by setting b/saved-area
to what the background should be.
Or else you must view the window to render the effects:
window: layout [
t: text "I am text underneath" effect [merge luma 20]
b: box "hello" with [color: none] effect [merge gradmul 120.120.120
view/new/offset window -1000x-1000 ; necessary for win-offset? to work (uses
image: copy/part skip to-image window win-offset? b b/size
view layout [image (image)]
Not entirely satisfactory, since a window is created and destroyed
in a flicker. If you have many faces to do, then there is a flickering
user interface. Perhaps to alleviate this an already open window can
be used, though I suspect clipping will not allow faces with negative
offsets to be rendered properly.