views:

161

answers:

0

Hi, I'm customizing my image picker controller and I want to have a full-screen viewfinder. I think this might be pretty an old topic and I found an answer here:

http://www.gorbster.net/blog/archives/144

But what I want to know is if there's a way to achieve this without distorting the scale of the image. If I scale that clipped preview image, I'm distorting its original x-y ratio, and I want to avoid it. Is there a way to prevent the preview image from being clipped so that I could retain the original 1200x1600 ratio? Thanks!


I've just realized that the camera ratio (4:3) is different from that of the screen (3:2). :$

http://stackoverflow.com/questions/2674375/uiimagepickercontroller-doesnt-fill-screen

So I guess the preview is showing at the right ratio, and we will have 480 - (320 / 3 * 4) = 53 pixels height of black bar at the bottom naturally..