lens effect on an image

Ken Norris pixelbird at interisland.net
Tue Nov 25 16:08:33 EST 2003


Hi Yves,

> Date: Tue, 25 Nov 2003 20:36:54 +0100
> From: Yves COPPE <yvescoppe at skynet.be>
> Subject: Re: lens effect on an image
> 
> thankl you for your answer
> BUT
> 
> I've tried and it doesn't zoom in WHERE the user clicks ?????
> Greetings.
----------
I know. All it does is zoom the image in its own rect, because that's where
the script does it. I had mentioned you'd have to capture the image to zoom
yourself, i.e., import a snapshot of a particular rect relative to the
coordinates returned in a mouseMove message handler, and display it at a
position of your choice at mouseUp.

You could put the modified handler in a transparent object whose rects would
define the imported image rect, or in a card/stack-level mouseMove with
specified rect coordinates relative to mouseMove, and display the imported
image at whatever location you want. The "zoom engine" part of the handler
zooms the resulting imported image at its loc, not the target, i.e., that's
how you'd modify it.

I gotta go right now, but since I'm interested in this type of thing myself,
I'd be happy to work out an example closer to your req's later on tonight.

Best regards,
Ken N.



More information about the use-livecode mailing list