How can I make one image of several uiviews that have an imageview on it, with the scale and everything, I already found some code to put one image to another:
- (UIImage *)addImage:(UIImage *)imageView toImage:(UIImage *)Birdie {
UIGraphicsBeginImageContext(imageView.size);
// Draw image1
[imageView drawInRect:CGRectMake(0, 0, imageView.size.width, imageView.size.height)];
// Draw image2
[Birdie drawInRect:CGRectMake(0, 0, Birdie.size.width, Birdie.size.height)];
UIImage *resultingImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return resultingImage;
}
This code make one image with two images at the point 0,0, I need to merge several images with the actual zoom to one image, I have one background image and several objects on it that I can zoom in and out and i want to make a final image with all the objects at their places and with their zoom, like photoshop, where you have several objects and you can merge them into one.