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

crop bug?

 [1/2] 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. **************************************************************************

 [2/2] from: arolls:idatam:au at: 9-Jan-2002 18:29


I would agree it's a bug. I have noticed it before too but I am not sure if it has been reported, I think it probably has. If no-one here responds in a few days then report it to feedback. I think you will have to use a combination of img/offset and crop. By the way, you can use: layout [ img: image load-thru url ] and path-thru url to see it in your public cache. (or even load-thru/to ...) Anton.