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

[REBOL] Re: face/saved-area question

From: cyphre::seznam::cz at: 9-Jan-2002 10:04

Hi Anton, one of my view docs says: saved-area Enables faster rendering for transparent faces. When a face is transparent on a static (unchanging) backdrop, this field can be set to TRUE to accelerate redrawing. The face can change without requiring the backdrop to be rendered each time. The pixels for the area under the face will be saved into this field, changing it from a TRUE to an IMAGE. This field defaults to NONE. for example try this: -----------snip----------- l: layout [backtile logo.gif t: vtext "HELLO WORLD" with [saved-area: true]] view/new l view/new layout [image t/saved-area] ;this is the "cutted" background view/new layout [box 150x50 with [pane: make t []]] ; the face holds this background ----------snip-------- so as you can see, the image which contains 'saved-area is just for holding of the background of the face so View doesnot have to "key"(or render) background of this face when for example the face is moving . But it is useful only when the backgound has one color etc. regards, Cyphre