Force refresh a rotated, file referenced Image
Chipp Walters
chipp at chipp.com
Wed May 21 19:19:00 EDT 2003
set the filename of image "currentImage" to empty
set the filename of image "currentImage" to jai
should do the trick
> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Sannyasin
> Sivakatirswami
> Sent: Monday, February 10, 2003 8:31 PM
> To: use-revolution at lists.runrev.com
> Subject: Force refresh a rotated, file referenced Image
>
>
> I use the following to rotate jpegs, it works great... the only problem
> is that the interface doesn't update. The image is rotated and if I run
> a separate handler to show a different image in "CurrentImage" then
> come back to the image I rotated, it shows the new orientation in image
> "CurrentImage"
>
> global gCurrentFolder, gLastLine
> on mouseUp
> put gCurrentFolder & fld "currentImage" into jai
> put jai into tPath
> create image "Thumb"
> set the rect of image "thumb" to the rect of image "currentImage"
> set the imagedata of image "thumb" to the imagedata of image
> "currentImage"
> set the topleft of image "thumb" to 200,200
> set the angle of image "thumb" to -90
> export image "thumb" to URL ("binfile:"&jai) as JPEG
> delete image "thumb"
> set the filename of image "currentImage" to jai
> ## but the image is not updated by the above line
>
> end mouseup
>
> is there a way to force refresh the image to the file path all in the
> same handler?
>
>
> Sannyasin Sivakatirswami
> Himalayan Academy Publications
> at Kauai's Hindu Monastery
> katir at hindu.org
>
> www.HimalayanAcademy.com,
> www.HinduismToday.com
> www.Gurudeva.org
> www.Hindu.org
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list