1

I have two UIImageView one over the other, and I'dlike to save them in one single file to camera roll.

 UIImageWriteToSavedPhotosAlbum(self.myimage.image,nil,nil,nil);
});

the images are laying on top of each other and are the same size. the top one has few alpha in order to see the other one

Popeye
  • 11,839
  • 9
  • 58
  • 91
kuranes
  • 546
  • 1
  • 6
  • 16
  • 1
    http://stackoverflow.com/questions/11131050/ios-save-image-to-camera-roll – iPatel Jul 02 '13 at 11:20
  • http://stackoverflow.com/questions/2560082/how-to-merge-multiple-uiimageviews-into-one-uiimage – iPatel Jul 02 '13 at 11:21
  • How are the image views related to each other? Are they the same size? There are numerous ways the images could be combined... – Wain Jul 02 '13 at 11:21

1 Answers1

0

you can do it in this way..,

Add your both imageview in one UIView., and then take screenshot of This UiView and stored generated image in your desired destination.

Here is Code to take screen shot by coding

// code to take Screen shot
-(void) takeScreenshot
{
    // Replace self.view with your view name which containing your ImageViews

    UIGraphicsBeginImageContext(self.view.bounds.size);
    CGContextRef context = UIGraphicsGetCurrentContext();
    [self.view.layer renderInContext:context];
    // get a UIImage from the image context
    UIImage *screenImage = UIGraphicsGetImageFromCurrentImageContext();
    // clean up drawing environment
    UIGraphicsEndImageContext();

    // Then save your Image in your desired destination
}

Hope it will Help you, Happy Coding

Dhruvik
  • 984
  • 4
  • 18
  • it is not working for me can you show me a complete code example of the Action? including the save part i mean – kuranes Jul 02 '13 at 12:37