Images

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
shareking
Posts: 1
Joined: Sat Mar 16, 2013 11:40 pm

Images

Post by shareking » Sat Mar 16, 2013 11:56 pm

I am just stating to program in livecode/ios. I want to add an image to an app. I place a .png image and resize it as it is too large for the screen. I add the file path to the additional files box or it does not display. However in the simulator the file shows as its original, too large, size. If I do the same thing directly in Xcode, not using liveCode, the image shows at the correct size.

What do I have to do to in liveCode make the image show at its resized size in the simulator?

Any help appreciated.

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Images

Post by Simon » Sun Mar 17, 2013 12:56 am

In the Property Inspector for the image select lock size and position.
But that is not really the best way as you should actually resize the file so you don't waste memory space.
From the lesson:
http://lessons.runrev.com/s/lessons/m/4 ... nail-image
One of my all time favorite lines:
set the imagedata of image tImageName to the imagedata of image tImageName
Will reduce the file size.

If I didn't answer your question just ask again.

Simon
OH, And welcome to the forum! :D
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Images

Post by Klaus » Sun Mar 17, 2013 5:09 pm

I moved this thread to the correct forum, this is definitvely NOT an announcement! 8)

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”