In my application I capture image from camera. At that time sharpness of my image is fantastic but with the following lines of code my image is moved to next view.
- (UIImage *) imageFromView:(UIView *)view {
UIGraphicsBeginImageContext(view.bounds.size);
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return viewImage;
}
When I see the image in next view at that time it is less sharper than before.
I want to mention, on both screens height and width of image view is same.
then what should be the problem with sharpness of image?
Use this Line
instead of
UIGraphicsBeginImageContext(view.bounds.size);