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

  • SEARCH
  • Home
  • 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 3492844
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T11:48:32+00:00 2026-05-18T11:48:32+00:00

I would like to have a feature in my app that -lets you take

  • 0

I would like to have a feature in my app that

-lets you take a picture of yourself or other that has a fame eg “Wanted:” overlaid on it.

-The user then would take the photo and the overlay and photo would be combined into one

-The resulting image usable in code.

Any ideas where to/how to start with this. Any tutorials etc.

Cheers

  • 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-18T11:48:32+00:00Added an answer on May 18, 2026 at 11:48 am

    It can get a little tricky, dealing with the transform applied to the preview of the image which makes it look a little different from the one you get handed by the camera, but here is the basic idea:

    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
    
    UIImage *img = [info objectForKey:UIImagePickerControllerOriginalImage];
    
    // Here we are throwing away lots of image resolution -- but since our art is built for the 320 x 480 screen
    // and we are worried about uploading bandwidth, crunching the image down from ~1600 x 2400 to 320 x 480 just makes sense
    // note that the proportion is a little different, so the picture is slightly stretched in the y-axis, but this is augmented reality, so we like that
    
    // note that hardwareScreenSize has to be determined by checking UIDeviceHardware
    
    UIGraphicsBeginImageContext(hardwareScreenSize);
    
    
    [img drawInRect:CGRectMake(0, ((hardwareScreenSize.height - hardwareScreenSize.height ) / 2), hardwareScreenSize.width, hardwareScreenSize.height)];
    
    
    // this scales overlayImage to fit ontop of camera image
    [(UIImage *)overlayImage drawInRect:CGRectMake(0, 0, hardwareScreenSize.width, hardwareScreenSize.height)];
    
    UIImage *finalImage = UIGraphicsGetImageFromCurrentImageContext();
    [finalImage retain];
    
    UIGraphicsEndImageContext();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So in my project i would like have a nice treeview that has images.
I have a project that has a list of gps coordinates. I would like
I have an IFrame app, and I would like to use some Connect features
I would like to have a drag-and-drop feature based on images. If I drag
I would like the feature for the sign in box to have the username
I would like to introduce multithreading feature in my shell script. I have a
I have a need to implement a rating feature and would like to do
I have an ASP.Net application which as desired feature, users would like to be
I have a problem that I would like have solved via a SQL query.
I would like to have it so that when I play one Vimeo video

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.