image zoom

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

image zoom

Post by churchken » Sat May 30, 2009 3:05 pm

Hi & thanks in advance for any help,

Can a portion of an image object be "zoomed" to enlarge it?

The goal is to allow the user of a stand alone Windows program to define a rectangle portion of an already displayed image object, and magnify just that portion of the image.

Thanks.
Ken

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sat May 30, 2009 3:21 pm

Ken,

Make a group with an image object. Set the lockLoc of the group to true and give the group scrollbars. You probably will want to set the margins of the group to 0. Use a script to change the size of the image while you zoom in and out.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

churchken
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 66
Joined: Sun Apr 15, 2007 2:54 pm

Post by churchken » Sat May 30, 2009 4:12 pm

Thanks, Mark,

That's getting me there -- a good start. Appreciate the tip.
Ken

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Post by WaltBrown » Sun May 31, 2009 1:01 am

The camouflage stack from www.tactilemedia.com looks like it has similar properties as well.

Walt
Walt Brown
Omnis traductor traditor

Post Reply