Inflation

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9454
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Inflation

Post by richmond62 » Sat Jun 17, 2023 8:08 pm

SShot 2023-06-17 at 22.05.04.png
-

Code: Select all

on mouseUp
   set the magnify of img "Cat" to true
end mouseUp
In theory this is pretty 'sexy, but in practice it doesn't seem quite that as I cannot find out if there is anyway to either:

1. increase the size of the area of the image magnified.

2. Move the bounding square around to see different parts of the image magnified.

AND:

3. There seems no way to alter the magnification scale.

Erm . . . hang over from HyperCard?
Attachments
Blow Up.livecode.zip
Stack.
(11.86 KiB) Downloaded 76 times

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Inflation

Post by jacque » Sun Jun 18, 2023 6:00 pm

Yes, it's a feature from HC to allow you to edit individual pixels in image. Use instructions are in the dictionary.
When you set the magnify of an image to true, a palette appears displaying a close-up view of the center of the image. At the same time, a box appears in the stack window showing you what portion of the image is magnified. Drag this box by its edges to magnify different parts of the image. In the Magnify palette, you use the paint tools to change the image.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9454
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Inflation

Post by richmond62 » Sun Jun 18, 2023 6:04 pm

Thanks.

However, dragging the box seems impossible.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7258
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Inflation

Post by jacque » Sun Jun 18, 2023 11:44 pm

richmond62 wrote:
Sun Jun 18, 2023 6:04 pm
Thanks.

However, dragging the box seems impossible.
Choose a paint tool. The magnify property is only for painting.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”