Standalone picture taking
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 665
- Joined: Tue Jul 29, 2014 12:52 am
Standalone picture taking
Hi, I would like to develop what I think is a simple stack but not sure it if is possible.
What I want to accomplish is basically to take a picture, without user intervention, at given time intervals.
I guess using local notification will perfectly deal with the Time Intervals aspect but I can't figure out how to take the picture under stack control.
Any hints will be greatly appreciated.
What I want to accomplish is basically to take a picture, without user intervention, at given time intervals.
I guess using local notification will perfectly deal with the Time Intervals aspect but I can't figure out how to take the picture under stack control.
Any hints will be greatly appreciated.
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Livecode Opensource Backer
- Posts: 10123
- Joined: Fri Feb 19, 2010 10:17 am
Re: Standalone picture taking
If you look up "export snapshot" in the in-built
documentation things are explained pretty comprehensibly.
Have lots of fun, and hack it to bits!
documentation things are explained pretty comprehensibly.
Have lots of fun, and hack it to bits!
-
- Livecode Opensource Backer
- Posts: 10123
- Joined: Fri Feb 19, 2010 10:17 am
-
- Posts: 665
- Joined: Tue Jul 29, 2014 12:52 am
Re: Standalone picture taking
@richmond62, many thanks for your prompt and useful answer, it really helps.
Best!
Best!
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Posts: 665
- Joined: Tue Jul 29, 2014 12:52 am
Re: Standalone picture taking
Hi @richmond62, sorry for bother you again but can't get the stack to work on iOS (using the simulator)...
Have you tried it? Does it work for you? I guess I'm missing something.
To be more precise I would like to save the taken picture to the photo album.
Thanks for any help
Have you tried it? Does it work for you? I guess I'm missing something.
To be more precise I would like to save the taken picture to the photo album.
Thanks for any help
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Livecode Opensource Backer
- Posts: 10123
- Joined: Fri Feb 19, 2010 10:17 am
Re: Standalone picture taking
I'm sorry, I haven't a clue as I have little or no interest in iOS.
-
- Posts: 665
- Joined: Tue Jul 29, 2014 12:52 am
Re: Standalone picture taking
Got it thanks anyway...
If / When I make it work I will post the script for other potential users interested on it.
Best regards
If / When I make it work I will post the script for other potential users interested on it.
Best regards
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question
-
- Posts: 665
- Joined: Tue Jul 29, 2014 12:52 am
Re: Standalone picture taking
This is the code I used to achieve my goal, just an Image control is needed to define the size of the virtual camera and show the picture that was taken
Code: Select all
-- set the virtual camera
cameraControlCreate"myFirstCamera"
cameraControlSet "myFirstCamera", "device", "rear"
cameraControlSet "myFirstCamera", "rect", the rect of image 1
cameraControlSet "myFirstCamera", "visible", true
-- take the picture and show it
cameraControlDo "myFirstCamera", "takePicture"
put the result into image 1
-- save to album
put the long ID of the last image into tImageID
mobileExportImageToAlbum tImageID
Simon
________________________________________
To ";" or not to ";" that is the question
________________________________________
To ";" or not to ";" that is the question