ios7 - How to prevent preview image distortion when using cameraViewTransform -


i working custom uiimagepickercontroller, , scaling camera fit full screen follows:

cgsize screensize = [[uiscreen mainscreen] bounds].size; float cameraaspectratio = 4.0 / 3.0; float imagewidth = floorf(screensize.width * cameraaspectratio); float scale = ceilf((screensize.height / imagewidth) * 10.0) / 10.0; self.picker.cameraviewtransform = cgaffinetransformmakescale(scale, scale); 

i access preview image using:

uiimage *chosenimage = info[uiimagepickercontrolleroriginalimage]; 

the problem preview image has distortion , not same live camera view.

how can fix this?


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -