【问题标题】:Image Captured in Landscape mode rotating in iOS在 iOS 中以横向模式旋转拍摄的图像
【发布时间】:2013-06-19 16:24:16
【问题描述】:

我正在使用相机以纵向模式呈现UIImagePickerController。我正在以横向模式拍摄图像。 UIImagePickerController 将捕获的图像自动旋转 90 度。为什么这样做?如何保留原始捕获的图像?

【问题讨论】:

    标签: iphone ios5 uiimagepickercontroller landscape


    【解决方案1】:

    试试这个

    UIImage* newImage = [UIImage imageWithCGImage:oldImage.CGImage scale:oldImage.scale orientation:UIImageOrientationUp];
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-15
      • 2015-10-21
      • 2013-10-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-22
      相关资源
      最近更新 更多