Zooming to Center

Paul Gabel paulgabel at comcast.net
Sun May 18 10:54:14 EDT 2008


Hi Mark:

I should have written instead:

1. Place the original loc of the image into a local variable called  
OriginalLoc.
2. Then include "set the loc of image "The Image" to OriginalLoc"  
inside every iteration of the loop that is zooming your image.

I'm assuming that you were having no trouble with the zooming repeat  
loop.

Paul Gabel
-------------

> Just include "set the loc of image "The Image" to the screenLoc"  
> inside every iteration of the loop that is zooming your image.


On May 17, 2008, at 7:30 PM, Mark Greenberg wrote:

> I have an image that is much larger than the stack.  I have two  
> buttons, ZoomIn and ZoomOut.  They do their jobs as far as zooming  
> in and out by resizing the image, but I would like the part of the  
> image that is in the center of the screen to stay there during the  
> zoom (when possible).  Right now it moves around and I can't figure  
> out the math to make it seem to zoom to (or from) the part of the  
> picture that is in the center of the card.
>
> 	Thanks in Advance,
>
> 		Mark Greenberg
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list