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 552281
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:28:57+00:00 2026-05-13T11:28:57+00:00

Special Thanks in advance…… I m the beggininer in iphone software development. Just looking

  • 0

Special Thanks in advance……
I m the beggininer in iphone software development.

Just looking for how to programmatically add real time a watermark image to camera view using cocoa. Not looking for a step by step ( although that would awesome ), but more or less looking for where I should start looking to learn how. Are there frameworks developed to work for this. Would like something native to objective-C using XCode framework because I would like to eventually give this a go on the iPhone. Any help would be great.

  • 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-13T11:28:58+00:00Added an answer on May 13, 2026 at 11:28 am

    UPDATE: here’s my other answer about how this overlay view can be put under the camera animations: camera overlay view – just for preview?

    Helo Rajendra!

    I’ve created a simple Window-based iPhone OS Application to give you a very simple example on what and how should be done to capture photos with camera, overlay views in camera mode, resize and merge images. This project is actually has only AppDelegate header and implementation files and can be easily reproduced in XCode.

    Here’s the header file:

    //
    //  CameraWatermarkAppDelegate.h
    //  CameraWatermark
    //
    //  Created by Ivan Karpan on 1/16/10.
    //  Copyright __MyCompanyName__ 2010. All rights reserved.
    //
    
    #import <UIKit/UIKit.h>
    
    
    @interface CameraWatermarkAppDelegate : NSObject < UIApplicationDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate > {
        UIImageView *imageView;
        UIViewController *viewController;
        UIWindow *window;
    }
    
    @property (nonatomic, retain) UIImageView *imageView;
    @property (nonatomic, retain) UIViewController *viewController;
    @property (nonatomic, retain) IBOutlet UIWindow *window;
    
    
    @end
    

    And here’s the implementation file:

    //
    //  CameraWatermarkAppDelegate.m
    //  CameraWatermark
    //
    //  Created by Ivan Karpan on 1/16/10.
    //  Copyright __MyCompanyName__ 2010. All rights reserved.
    //
    
    #import "CameraWatermarkAppDelegate.h"
    
    
    const float WATERMARK_ALPHA = 0.5;
    
    
    @implementation CameraWatermarkAppDelegate
    
    @synthesize imageView, viewController, window;
    
    
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
        self.viewController = [[UIViewController new] autorelease];
        viewController.view.backgroundColor = [UIColor blackColor];
    
        // An image view to save to (and therefore display) the captured image
        self.imageView = [[UIImageView new] autorelease];
        imageView.frame = viewController.view.frame;
        [viewController.view addSubview:imageView];
    
        [window addSubview:viewController.view];
    
        UIImagePickerController *anImagePickerController = [UIImagePickerController new];
        anImagePickerController.delegate = self;
        anImagePickerController.sourceType = UIImagePickerControllerSourceTypeCamera;
    
        {// This block of code is only needed in case you want your watermark to be displayed also during the shooting process
            UIImageView *anImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"Watermark.png"]];
            anImageView.alpha = WATERMARK_ALPHA;
            anImageView.contentMode = UIViewContentModeTopLeft;
            anImageView.frame = viewController.view.frame;
            anImagePickerController.cameraOverlayView = anImageView;
            [anImageView release];
        }
    
        // From the very beginning we simply present the image picker controller
        [viewController presentModalViewController:anImagePickerController animated:NO];
        [anImagePickerController release];
    }
    
    
    - (void)dealloc {
        [imageView release];
        [viewController release];
        [window release];
        [super dealloc];
    }
    
    #pragma mark UIImagePickerControllerDelegate
    
    - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
        UIGraphicsBeginImageContext(CGSizeMake(320, 480));
        // This is where we resize captured image
        [(UIImage *)[info objectForKey:UIImagePickerControllerOriginalImage] drawInRect:CGRectMake(0, 0, 320, 480)];
        // And add the watermark on top of it
        [[UIImage imageNamed:@"Watermark.png"] drawAtPoint:CGPointMake(0, 0) blendMode:kCGBlendModeNormal alpha:WATERMARK_ALPHA];
        // Save the results directly to the image view property
        imageView.image = UIGraphicsGetImageFromCurrentImageContext();
        UIGraphicsEndImageContext();
    
        // Dismiss the image picker controller and look at the results
        [picker dismissModalViewControllerAnimated:YES];
    }
    
    
    @end
    

    I hope this will serve you as a starting point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Special thanks in advance for sending me answer........ I m the beginner in iphone
Thanks in advance for any help. I am new to python, but not particularly
I am looking for a simple and efficient way to give a special tint
I'm new in iPhone, I want to cut a string after a special character,
What special method(s?) should I redefine in my class so that it handled AttributeError
Are there special restrictions for naming an event handler under GWT UIBinder? UI template:
I am dealing with special task. As a user, moderator and admin of PHPBB
Is there any special function to parse a .conf file in php like parse_ini_file()
How to use special characteres like <,>,, and & in XML in Flex? Example:
How to embed special character in XML and have XDocument parse it? <?xml version=1.0

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.