Loading from Photo Library into Browser instance
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Loading from Photo Library into Browser instance
Can anyone tell me if it is possible (and if so, how) to choose a photo from the photo library and subsequently load it into a browser control rather than an image template? I have been unable to find any documentation on how to do this.
Re: Loading from Photo Library into Browser instance
Just write the image to a file on the device and then open it in a browser. To write it to the device use the "export image to file filePathToImageFile" command (see the dictionary for details) and to show it in the browser use:
Gerry
Code: Select all
iPhoneControlSet browserID, "url", filePathToImageFile
14" MacBook Pro
Former LiveCode developer.
Now recovering.
Former LiveCode developer.
Now recovering.
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Loading from Photo Library into Browser instance
Thanks Gerry, I'd been working at it since I posted and that's where I ended up (wow, maybe I'm learning from you folks!).
Next issue is: I'm trying to (post-pinch/zoom) export a snapshot of the image in the browser...so far it's coming up empty. Is it possible?
Next issue is: I'm trying to (post-pinch/zoom) export a snapshot of the image in the browser...so far it's coming up empty. Is it possible?
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Loading from Photo Library into Browser instance
Something that I have learned: The browser rect is not a retina, even though all other dimensions I'm dealing with in my app are. Took me a while to figure that out, but now when exporting a snapshot from the browser will I be getting a half-sized image?
-
- Posts: 379
- Joined: Thu Dec 08, 2011 2:43 am
Re: Loading from Photo Library into Browser instance
Update: Indeed, while I needed to set a browser rec to non-retina dimensions, the snapshot export needed to be retina dimensions. Getting there!