image rescale quirk

J. Landman Gay jacque at hyperactivesw.com
Sun Jul 12 13:50:15 EDT 2009


Nicolas Cueto wrote:
> Hello All,
> 
> I've scripted an arrowkey handler which first
> resizes a stack and then calls a function that
> rescales an image on a card.
> 
> When the handler is run line by line in the
> script debugger, I can see the image being
> resized as expected before the handler exits.
> 
> But, in actual use, the handler will resize the
> stack but not rescale the picture -- unless
> I force the handler to run twice, which then
> rescales the image as expected to the new
> stack size.
> 
> I've tried lock/unlock screen and stack buffer
> but no go.
> 
> Any ideas?

Is the lockloc of your image set to true? The image will resize to its 
native dimensions every time the card is redrawn if it isn't locked. I 
think resizestack redraws the card when it is finished, so that would 
explain why your image reverts.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list