Does resizing an image change number of bytes?
Phil Davis
davis.phil at comcast.net
Tue Sep 27 21:36:27 EDT 2005
Hi Steve,
Image resizing alone won't change total stack size. However, once you've
resized your image to exactly what you want, you can make a button to
remove the fat, like this:
on mouseUp
-- first, prevent the image from expanding when reset
set the lockLoc of img "myImage" to true
-- reset the image's data
put the imageData of img "myImage" into tData
set the imageData of img "myImage" to tData
end mouseUp
Then save your stack and take a look at your stack size - it'll be smaller.
There are probably other ways to do it, but this is one way.
Phil Davis
Stgoldberg at aol.com wrote:
> Hope someone can help with this question. If I import an image, say 1 meg,
> into Revolution using "Import as Control" and then resize it to make it
> smaller, does it still take up 1 meg, or does it take up less memory? Thanks.
> Steve Goldberg
More information about the use-livecode
mailing list