 |
 |
|
 |
06-20-2009, 12:31 AM
|
#1 (permalink)
|
|
Registered Member
Join Date: Oct 2008
Posts: 19
|
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.
Thanks
|
|
|
06-20-2009, 10:22 PM
|
#2 (permalink)
|
|
Senior Member
iPhone Dev SDK Supporter
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,448
|
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.
__________________
|
|
|
06-21-2009, 09:00 AM
|
#3 (permalink)
|
|
Registered Member
Join Date: Oct 2008
Posts: 19
|
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.
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 539 |
| 40 members and 499 guests |
| !_UK@$, ackpth, atlwx, blex, checkright, CHV, codeflakes, coolman, Cubben2, delphipgmr, designomatt, eimanz, embedded, GeoLogTag, GreenApple, ianian, ihua, iPhoneSpain, Janek2004, JasonR, Johanovski, josechuis, jumbo0, Kroupy, Kryckter, loganbest, lukeca, nathanp, nycos, pjlocko, pongteam2, Saurman, sbuchbin, SmallWonder, Stephane.tamis, striker, x2on, z850, _Mac |
| Most users ever online was 779, 05-11-2009 at 10:55 AM. |
» Stats |
Members: 21,490
Threads: 35,768
Posts: 156,681
Top Poster: smasher (2,448)
|
| Welcome to our newest member, pongteam2 |
|