Resizing images - setting cImageRatio

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
cusingerBUSCw5N
Posts: 339
Joined: Wed Jul 11, 2012 9:24 pm

Resizing images - setting cImageRatio

Post by cusingerBUSCw5N » Sat Aug 25, 2012 9:40 pm

I have just figured out that the images on the TickedOff application automatically resize when the stack/card size changes because the images have three Custom properties: - cImageRatio, cPrimaryDimension and cStackRatio. In the short run, I am going to calculate the cStackRatio and manually put it and the other properties in the images properties. But that's a workaround. I would like to know how to import images where these special properties are automaticallly added.

Thanks

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2729
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: Resizing images - setting cImageRatio

Post by jmburnod » Sun Aug 26, 2012 8:18 am

Hi,

There is a thread useful for you.
Have a look at:
http://forums.runrev.com/phpBB2/viewtop ... =8&t=12653

Best regards

Jean-Marc
https://alternatic.ch

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Resizing images - setting cImageRatio

Post by Klaus » Mon Aug 27, 2012 10:57 am

Hi,
cusingerBUSCw5N wrote:I would like to know how to import images where these special properties are automaticallly added.
no automatism for this in LiveCode, you need to do this manually with a nice script!
Please check the link that Jean-Marc supplied, that may get you started.


Best

Klaus

Post Reply