Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7497687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T19:11:21+00:00 2026-05-29T19:11:21+00:00

I have a cameraOverlay with it’s own camera button and I use the takePicture

  • 0

I have a cameraOverlay with it’s own camera button and I use the takePicture method when they press the camera button and use the delegate method

-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo: (NSDictionary *)info{
    [CommonClass AddToStack:@"ReviewController:imagePickerController"];
    PhotoOverlay *overlay = (PhotoOverlay*)picker.cameraOverlayView;
    [overlay setupImage:[info objectForKey:UIImagePickerControllerOriginalImage]];
}

the setupImage: method just does sets the image for a UIImageView I have on the overlay

the problem with this is that there is a 0.3 second gap between the takePicture and the imagepicker delegate method so it looks really weird. I’ve seen apps transition immediately from pressing the camera to the final view when using a custom overlay.

has anybody encountered this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T19:11:23+00:00Added an answer on May 29, 2026 at 7:11 pm

    The way to get the instant image is by doing a screenshot of the screen and using that image first, then call the takePicture and replace it with the screenshot when it’s ready (the screenshot is a lower resolution than the actual image).

    Here is my snippet:

    -(void)CameraPressedTake
    {
    extern CGImageRef UIGetScreenImage();
    PhotoOverlay *overlay = (PhotoOverlay*)cameraPicker.cameraOverlayView;
    
    CGImageRef cgoriginal = UIGetScreenImage();
    
    float width = 320.0;
    float height = 480.0-[overlay myHeight];
    //if it's retina...
    if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] && [[UIScreen mainScreen] scale] == 2) {
        width = 2*width;
        height = 2*height;
    }
    CGImageRef cgimg = CGImageCreateWithImageInRect(cgoriginal, CGRectMake(0, 0, width, height));            
    UIImage *viewImage = [UIImage imageWithCGImage:cgimg];
    [overlay setupImage:viewImage];
    CGImageRelease(cgoriginal);                
    CGImageRelease(cgimg);
    [cameraPicker takePicture];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have customized the camera with custom buttons(UIButton) by overlay view. My iPhone application
I have this critical issue with showing top statusbar on the custom camera overlay
Have any one tried to activate fancybox thumbnail gallery using a button or an
I have an app with a camera overlay. Into this overlay view I have
Have an app that can use tts to read text messages. It can also
Have a fun issue with sharepoint calendar view filtering. That code works fine: SPSecurity.RunWithElevatedPrivileges(delegate()
I have a custom camera overlay that, like all camera views, is default in
Have a nice day! How to use NPAPI plugin written on C++ in Windows
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.