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

[REBOL] Re: Make Image of a Layout

From: jason:cunliffe:verizon at: 26-Sep-2002 16:29

Anton wrote:
> img: to-image layout [origin 0 title "Big Train"] > > save/png %image.png img > > view layout [image img] > > It would be nice if to-image could accept a pane block > but it appears that it cannot at this time.
How do you get the coordinates, width, height of a pane? If so, should be simple to write a nice save-pane function which captures then crops the layout's image correctly to the pane's. ./Jason