After days of vain searching - I resorted to posting a thread... The problem I have is this:
I would like to capture multiple images from iPhone's camera. I don't specifically mind using the UIImagePicker but i need to have similar functionality to "25 Shot - Cam Replay" and Cycorder - (without the compression or audio) In short I need to capture multiple images synthesizing touch events is fine with me, and using the private frameworks is an option, but preferably not. Can somebody give me some insight into this problem?
PS: 3.0 isn't really a problem this early into development - though some warnings wouldn't go amiss .
Could you use UIImagePicker, then while it's open, take a screenshot of the screen programmatically many times? Sounds like it should give the effect you want, in theory. Then if you want, you can save each image to the photos album.
This is what i've been battling with all day :'( It seems that the view is somehow protected or delegated. I *cannot* screenshot it programatically. No matter the method weather it's the fully documented and legal renderInContext:UIGraphicsGetCurrentContext() or the undocumented UIGetScreenImage(), the second I cannot make even compile. It's quite frustrating. Anybody got any ideas?
So I got it working, think I'll attempt to make it work under 3.0 now. To be honest apple should provide ether the photo library API. Or a better interface. We all know why though. If they make it easy and legal to capture fast frames- then they wouldn't sell the 3GS as a movie device as well because people could make movie recorders. Ah well at some point I'll share the source for it (pm me if you need it *now* ). It uses uigetscreenimage() however so it's not totally legit. .
A future release of iPhone OS may provide a public API equivalent of this functionality. As such time all applications using UIGetScreenImage() will be required to adopt the public API.
Here's how I did it.
To use UIGetScreenImage(), you need to include this line
Code:
CGImageRef UIGetScreenImage();
in your header, before the @class ... line.
And below is the function I used to get the screen captured programmatically.
Im new to the forum, have been developing for a few months now but having trouble with the camera utility so wondering whether anyone will be able to help.
So far im managed to get the camera on, with an overlay of a slider bar over it and other non related things. However, im not able to get the slider bar linked to update the cameras cameraViewTransform value when the sliders value changes.