print/capture screen issue in iphone

Discussion in 'iOS Programming' started by vikysaran, Sep 29, 2009.

  1. vikysaran macrumors newbie

    Sep 25, 2009
    See this image


    on Grab button it opens camera/gallery. User selects or shoots image and presses choose button then picture comes inside above frame and looks like bellow.


    I have to save the image showing now with frame now.

    Tell me what to do. Is there any way to Capture screen? or how i can merge these photos to generate a new photo with frame.

    Thanx & Regards-
    Vaibhav Saran | Software Engineer
    Neo Sypher Systems Pvt. Ltd.
    New Delhi | India
  2. newlearner macrumors member


    Jul 30, 2009
    i presume you want to save the images in your iphone.

    To store an image captured by the iphone camera into your photos library, you can use the UIImageWriteToSavedPhotosAlbum method.

    In case you want to store it in your application's Documents Directory, you can convert the image into NSData and write the file into the Documents folder.
  3. vikysaran thread starter macrumors newbie

    Sep 25, 2009
    not only saving image
    i want to capture that perticular section that contains 2 images now.
    1 is frame and 2nd is selected image.
  4. robbieduncan Moderator emeritus


    Jul 24, 2002
    Get the picture from the camera as above, create a new UIImage of the correct size and lock focus on it, picture then the frame, save that new UIImage.

    And no, before you ask, I'm not going to post code, I expect you to go and read the documentation and write your own code.

Share This Page