Creating a real-time magnifier

J. Landman Gay jacque at hyperactivesw.com
Fri Nov 6 14:48:31 EST 2009


Thierry D. wrote:
> 
>>> Richard Miller wrote:
>>>> Any thoughts on how to magnify (by 2x) a 100x100 section of the 
>>>> screen in real time?

I got curious about this so gave it a try. I was able to do it in 18 
lines of script without the use of any snapshots. The basic idea is just 
to scroll a group containing a resized image so that its scroll 
corresponds to the location the mouse is over in the original image. I 
was surprised at how simple it is and I think it's easier on the engine 
than taking repeated snapshots at close intervals.

I uploaded to Rev Online. Look for "Magnifying an image" under my name.

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



More information about the use-livecode mailing list