File path to image on iOS?
Thomas McGrath III
mcgrath3 at mac.com
Wed Mar 28 23:13:30 EDT 2012
John,
Yes that is possible in LC to use the mobilePickPhoto to grab a photo and then save it to an images folder in you apps sandbox and or your apps documents folder. Then you can use those images in your app by using the image path to your images folder. What you can't do is have the iOS camera app save to your app or its folders (except as previously stated by using mobilePickPhoto).
something like this:
set the name of the templateImage to "FooBar" -- the mobilePickPhoto uses the template image so you can set up all attributes here
mobilePickPhoto "front camera", 250, 250 -- call up the camera from within LC
put image "FooBar" into URL ("file:" & specialFolderPath("documents") & "/" & "Foobar.png") -- this puts the image into a file in your documents folder
delete image "FooBar" -- if needed delete image from stack
LATER:
put image (specialFolderPath("Documents") & "/" & "FooBar.png") into image "AnotherImage" -- This puts the image into another image from the file
-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgrath at comcast.net
On Mar 28, 2012, at 1:14 PM, John Patten wrote:
> Hi All...
>
> Is it possible to save an image from the iOS camera in a folder other than "camera Roll?" And is it possible for the iOS camera command to save the image in a folder within the app and then use those images by saving their path and then setting the filename of image object in app to something like, defaultFolder/images/imagnename.jpg?
>
> Thank you!
>
> John Patten
> SUSD
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list