Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-19-2009, 11:31 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 19
Question 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
lostInTransit is offline   Reply With Quote
Old 06-20-2009, 09:22 PM   #2 (permalink)
Senior Member
iPhone Dev SDK Supporter
 
smasher's Avatar
 
Join Date: Jul 2008
Location: San Mateo, CA (San Fran)
Posts: 2,577
Default

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.
__________________
smasher is offline   Reply With Quote
Old 06-21-2009, 08:00 AM   #3 (permalink)
Registered Member
 
Join Date: Oct 2008
Posts: 19
Default

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.
lostInTransit is offline   Reply With Quote
Reply

Bookmarks

Tags
image proccessing, uiimagepickercontroller

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,333
Threads: 39,128
Posts: 171,563
Top Poster: smasher (2,577)
Welcome to our newest member, SteveMc
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:52 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0