image picker, picking from the images on the iphone

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
neo42
Posts: 83
Joined: Tue Mar 01, 2011 10:20 pm

image picker, picking from the images on the iphone

Post by neo42 » Sat Mar 05, 2011 5:35 pm

I would like to be able to open up the images on the iphone in my iOS livecode app and copy it, display it, scale it, etc...

Is this possible? I am a newbie to LiveCode.


I saw this tutorial which appears to be for liveCode on computers. Do you think it will work on the iphone? Perhaps with an adjustment?
I can't post the link but it's one of the lessons on RenRev's site. 19174-Image-Viewer


iphone = ios = ipad etc...

Danny
Posts: 106
Joined: Tue Nov 09, 2010 1:28 am

Re: image picker, picking from the images on the iphone

Post by Danny » Sat Mar 05, 2011 10:59 pm

I'm not exactly sure how to fix your problem but I did find this thread that might be of use. http://forums.runrev.com/viewtopic.php?f=49&t=6994

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

Re: image picker, picking from the images on the iphone

Post by Klaus » Mon Mar 07, 2011 1:10 pm

Hi neo,

yep!

Menu: Help -> iOS Release Notes (page 17):
Photo Picking Support
You can hook into the iPhone's native photo picker by using iPhonePickPhoto source, [ maxwidth, [ maxheight ] ]
Here source is one of:
• • •
library – the photo is taken from the device's photo library
camera – the photo is taken using the device's camera
album – the photo is taken from the device's recent camera roll
The maxwidth and maxheight parameters constrain the maximum size of an image.
The chosen image will be scaled down proportionally to fit within the size specified.
If either size specified is 0, then the parameter is ignored.
...

Best

Klaus

neo42
Posts: 83
Joined: Tue Mar 01, 2011 10:20 pm

Re: image picker, picking from the images on the iphone

Post by neo42 » Thu Mar 10, 2011 4:38 am

Thank you!

Post Reply