I am developing image size based iphone application. selecting two photos of size 1600*1200 from photo library and merging of both to single image and save to same library. Again if i check the image size it shows 600* 800. How to get original size(1600*1200) of created New photo(600*800).
Thanks 开发者_开发百科in advance.
Check the UIImagePickerControllerDelegate Protocol Reference.
The info
NSDictionary
of the imagePickerController:didFinishPickingMediaWithInfo:
method contains the original image.
Solved as follows.
UIView *bgView = [[UIView alloc] initwithFrame:CGRectMake(0,0,1600,1200)];
UIGraphicsBeginImageContext(tempView.bounds.size);
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(viewImage,self,nil,nil);
Thanks for all your support to solve the issue.
精彩评论