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
Post a Comment