Page 1 of 1

image picker, picking from the images on the iphone

Posted: Sat Mar 05, 2011 5:35 pm
by neo42
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...

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

Posted: Sat Mar 05, 2011 10:59 pm
by Danny
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

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

Posted: Mon Mar 07, 2011 1:10 pm
by Klaus
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

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

Posted: Thu Mar 10, 2011 4:38 am
by neo42
Thank you!