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

[REBOL] crop bug?

From: atruter::hih::com::au at: 9-Jan-2002 17:08

The following code allows an image to be scrolled, but on my (Win95) system it intermittently leaves "image residue" at a screen edge. Try running the code and pressing the up-arrow key a few times to see what I mean. Is this a bug? Are negative crop values A Good Idea? Any work-arounds? REBOL [] image-data: load read-thru/to http://www.rebol.com/view/demos/nyc.jpg %nyc.jpg view layout [ img: image image-data effect reduce ['crop 0x0 image-data/size] sensor 0 keycode[up] [img/effect/crop: img/effect/crop - 0x20 show img] sensor 0 keycode[down] [img/effect/crop: img/effect/crop + 0x20 show img] sensor 0 keycode[left] [img/effect/crop: img/effect/crop - 20x0 show img] sensor 0 keycode[right] [img/effect/crop: img/effect/crop + 20x0 show img] ] Regards, Ashley *****************Privacy, Confidentiality & Liability Notice ************ This email is intended for the named recipient only. The information contained in this message may be confidential, or commercially sensitive. If you are not the intended recipient you must not reproduce or distribute any part of this email, disclose its contents to any other party, or take any action in reliance on it. If you have received this email in error, please contact the sender immediately. Please delete this message from your computer. You must scan this email and any attached files for viruses. The company accepts no liability for any loss, damage or consequence, whether caused by our own negligence or not, resulting directly or indirectly from the use of any attached files. Any views expressed in this Communication are those of the individual sender, except where the sender specifically states them to be the views of the Company. **************************************************************************