【发布时间】:2013-06-19 16:24:16
【问题描述】:
我正在使用相机以纵向模式呈现UIImagePickerController。我正在以横向模式拍摄图像。 UIImagePickerController 将捕获的图像自动旋转 90 度。为什么这样做?如何保留原始捕获的图像?
【问题讨论】:
标签: iphone ios5 uiimagepickercontroller landscape
我正在使用相机以纵向模式呈现UIImagePickerController。我正在以横向模式拍摄图像。 UIImagePickerController 将捕获的图像自动旋转 90 度。为什么这样做?如何保留原始捕获的图像?
【问题讨论】:
标签: iphone ios5 uiimagepickercontroller landscape
试试这个
UIImage* newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:oldImage.scale orientation:UIImageOrientationUp];
【讨论】: