save image at higher resolution without pixelating it
Hi
I am using the image picker controller to get an image from the user. After some operations on the image, I want the user to be able to save the image at 1600x1200 px, 1024x1024 px or 640x480 px (something like iFlashReady app).
The last option is the size of image I get in the UIImagePickerControllerDelegate method (when using image from camera roll)
Is there any way we can save the image at these resolutions without pixelating the images?
I tried creating a bitmap context with the width and height I want (CGBitmapContextCreate) and drawing the image there. But the image gets pixelated at 1600x1200.
There is no way to increase the size of a bitmap image without decreasing the quality. With the resize you're doing, each pixel has to stretch to cover six new pixels; that will never look good. The detail just isn't there.
Maybe someone else knows how to get a larger picture from the camera roll.
We get 1600x1200 images if we use the original image (from editingInfo) from the camera and 640x480 images from the photo library
The problem is I use this image for a UIImageView and place some more graphics on it. Now I want to save back the entire image (as displayed on the current view) I can capture the image and the dimensions are 320x480. But I want to save it at a higher resolution than that.