Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Capturing transparent faces.

From: carl::cybercraft::co::nz at: 26-Jun-2005 0:07

Hi all, If you have a transparent face in View, it can be used to grab an image of the faces under it. However, I can only get this to work on a layout in an open window - when I attempt it on layout, all I get is a black image. Here's an example of this: Just run it, click on the "Grab Area" button and you'll see what I mean... rebol [] lo: layout [ title "Grab area test." at 30x20 b: box 80x30 with [color: none] ; Transparent box. button "Grab Area" [ window-grab: to-image b unview/all ] ] lo-grab: to-image b view lo view layout [ backdrop green text "Image grab from layout..." image lo-grab text "Image grab from window..." image window-grab ] So, is there a way to do this on just a layout? Thanks in advance, -- Carl Read.