IOS PickPhoto
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
IOS PickPhoto
Hi All,
Trying to find some information on the mobilePickPhoto command.
I can issue the command etc, but I cant find much detail on how to deal with the actual image (IE save to a file in the documents directory of the app)
In my App i want to be able to launch this command, select a file from the library and then save it to the documents directory.
If I can achieve the above can i then populate an image area on another card by referencing this file?
Thanks in advanced.
Trying to find some information on the mobilePickPhoto command.
I can issue the command etc, but I cant find much detail on how to deal with the actual image (IE save to a file in the documents directory of the app)
In my App i want to be able to launch this command, select a file from the library and then save it to the documents directory.
If I can achieve the above can i then populate an image area on another card by referencing this file?
Thanks in advanced.
Re: IOS PickPhoto
Nakia…
I have attached a stack… you can choose a photo from the library and then it saves it to the documents folder… I have just got the image to be named by the seconds when you made the choice… I'll leave you to sort out how you want to name the files...
The script is in the button "choose photo"
be well
Dixie
I have attached a stack… you can choose a photo from the library and then it saves it to the documents folder… I have just got the image to be named by the seconds when you made the choice… I'll leave you to sort out how you want to name the files...
The script is in the button "choose photo"
Code: Select all
on mouseUp
lock screen
iphonePickPhoto "library", 160,240
if the result is "Cancel" then exit mouseUp
set the text of image "imageholder" to the text of the last image of this card
export image "imageholder" to URL("binfile:" & specialfolderpath("documents") & "/" & the seconds & ".png") as PNG
delete the last image of this card
end mouseUp
Dixie
- Attachments
-
- photolib.zip
- (1.73 KiB) Downloaded 263 times
Re: IOS PickPhoto
Thanks so much.
Am I then able to import this file into an image area?
kind of like below?
put URL ("binfile:" & specialfolderpath("documents") & "/" & filename & ".png") into "ImageArea"
Am I then able to import this file into an image area?
kind of like below?
put URL ("binfile:" & specialfolderpath("documents") & "/" & filename & ".png") into "ImageArea"
Re: IOS PickPhoto
Hi...
be well,
Dixie
Use the following, where image x represents your 'image area'.Nakia wrote:Am I then able to import this file into an image area?
Code: Select all
set the filename of image x to specialfolderpath("documents") & slash & nameOfFile
Dixie
Re: IOS PickPhoto
Hello,
I've more questions about taking pictures with iOS.
How take "oriented" pictures ?
Thanks
I've more questions about taking pictures with iOS.
How take "oriented" pictures ?
Thanks
Re: IOS PickPhoto
What the heck is an "oriented" picture? 
But I doubt you can force the user to rotate by 90° degrees, if that is what you mean

But I doubt you can force the user to rotate by 90° degrees, if that is what you mean

Re: IOS PickPhoto
Hello,
If i took a picture with the Apple App when my device is in "Portrait", the picture is displayed in Portrait in the album or the computer, but if i took a picture with livecode when the device is in portrait, my picture is in landscape.
If i took a picture with the Apple App when my device is in "Portrait", the picture is displayed in Portrait in the album or the computer, but if i took a picture with livecode when the device is in portrait, my picture is in landscape.