imageData and resizing

Paul Hibbert paulhibbert at mac.com
Fri Jun 14 10:46:54 EDT 2013


Thomas,

In your script we can't see where "tempimage" comes from or what it contains, so to get this to work I had to change the last line to…

set the imageData of image x to the imageData of image x

Then it appears to work OK, for me at least.

Paul

On 2013-06-14, at 6:19 AM, Thomas McGrath III wrote:

> I'm trying to find a solution to images getting messed up after doubling their size for retina and then trying to set the imageData after they have been resized. The images get messed up with either horizontal lines or color shifts.
> 
> This works for one image but not for a group of images. As soon as I try to set the imageData of a group of images about half way through the images start to screw up.
> 
> set the resizeQuality of image x of group "images" to "best"
> set the lockLoc of image x of group "images" to true
> set the width of image x of group "images" to (the width of image x of group "images" * 2)
> set the height of image x of group "images" to (the height of image x of group "images" * 2)
> set the imageData of image x to tempimage
> 
> Any ideas or workarounds???
> 
> Thanks
> 
> 
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> mcgrath3 at mac.com
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list