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

[REBOL] Re: Manipulating Images - Newbie question

From: arolls:bigpond:au at: 17-Aug-2001 4:41

view layout [ img: image %yourimage.png button "rotate 90" [ img/image: to-image layout [ origin 0 image img/image effect [rotate 90] ] show img ] button "save" [save/png %atestimage.png img/image] ] so the modified image is saved back onto itself, and pressing rotate several times continues to rotate the image. You will need recode it a bit for images where width <> height, otherwise some info gets chopped off.