I want to use snaps taken in a camera immediately without saving. In my application i want to draw something for fun and save. How can i take an image from camera
Plz give Sample Code for UIImagePickerControl
(4 posts) (2 voices)-
Posted 1 year ago #
-
@Mythili here is a link to some code I posted in the past for this.
http://www.cocos2d-iphone.org/forum/topic/5734
Make sure to check this post out also!
http://www.cocos2d-iphone.org/forum/topic/963
My codes a little rough around the edges, but it will get you started.
Ron
Posted 1 year ago # -
I go through the code. Its very helpful. Is it possible to take snap from camera(immediately without saving) and use it for my game, after making some funny drawings and then only it ask whether to save or not.if we say "save" , it has to save in memory.
One more doubt - In a picture from picture library, i want to use portion of the image to select manually ,and will draw something in that portion and save it as another file. Is this possible
Posted 1 year ago # -
Take snap from camera?.
Yes follow once you set up the code and have it working.
Using iPhone:
1 - Launch the application
2 - Select "Camera"
3 - Take a photo
4 - Select "use"
2.Save to memory and Use a portion?
I'm not sure about saving to memory! Maybe someone with more programming experience can help you there.
What I did in my application Photophun was to set up an image so the user could move and scale the image. When they are done my application takes a screen shot of the area and saves it so it can be masked into a puzzle.
There is a full dicussion on the subject herehttp://www.cocos2d-iphone.org/forum/topic/1722#post-19601
Hope that helps some. :o)Ron
Posted 1 year ago #
Reply
You must log in to post.