1

In my application i would like to create custom application like this FDJ. This custom UIImagePickerController with over layer take picture only in specific region. http://www4.picturepush.com/photo/a/11522262/img/11522262.png

After take photo i will resize like FDJ. http://www2.picturepush.com/photo/a/11522255/640/11522255.png

Can you help me please. i'm blocked!!!

Thanks!!

sad1326
  • 21
  • 2

1 Answers1

0

From what you describe, it seems like you want to add a camera overlay view to your UIImagePickerController. See this link for a tutorial There are several other tutorials if you google for them. Implement the delegate -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info . The info dictionary will contain the image:
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage]; . You can then create a uiimageview and set the captured image. HTH.

batman
  • 1,937
  • 2
  • 22
  • 41
  • The problem is the image taken is not in the specific region. With this solution we should resize image(because i don't know if it is iPhone 4 camera or iPhone 4s camera,...) and after scale image for the specific region. – sad1326 Nov 30 '12 at 10:26
  • Check this comment http://stackoverflow.com/a/9940119/1113598 Its worth a shot if it works for you. – batman Nov 30 '12 at 10:41
  • As well as this link http://stackoverflow.com/a/10170518/1113598 where the user claims to have gotten it to work. And this for cropping http://stackoverflow.com/a/10119122/1113598. – batman Nov 30 '12 at 10:48
  • I would have an image in specific region like my first image example. – sad1326 Nov 30 '12 at 10:57
  • Your image in a specific region is nothing but a resized camera layout. Did you give the links i posted above a try ? – batman Nov 30 '12 at 11:01