Quote:
Originally Posted by brandons
Yes, this would be second generation since its not using the original image data but creating a whole new image from the view.
|
Thanks for the clarification brandons. I'm not using any works of art, but just wanted to make sure I understood what is happening.
What I might do, if I can figure it out, is show a preview of the image on the screen in a view but then tell the button to save the original file. It's not so much that the quality has to be great, but I will have a "save" button on the screen and I don't want it included as part of the image.
I thought the follow would get it, but does not.
Code:
- (IBAction)save:(id)sender {
[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"image" ofType:@"png"]];
UIImageWriteToSavedPhotosAlbum(UIGraphicsGetImageFromCurrentImageContext(), nil, nil, nil);
UIGraphicsEndImageContext();
}