UIImagePickerControllerEditedImage 的问题

时间:2023-03-23
本文介绍了UIImagePickerControllerEditedImage 的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我需要在导入应用程序之前编辑我的图像,但在编辑图像后会降低一些质量如何避免这种情况?

I need edit my Images before they import to the app but after editing the image reduces some quality how can avoid this ?

- (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {

    [self dismissModalViewControllerAnimated:YES];
    imgEdited.image = [info objectForKey:UIImagePickerControllerEditedImage];


}

推荐答案

- (void)imagePickerController:(UIImagePickerController *)picker 
                      didFinishPickingMediaWithInfo:(NSDictionary *)info {

  [picker dismissModalViewControllerAnimated:YES];
  [picker release];

          // Edited image works great (if you allowed editing)
  myUIImageView.image = [info objectForKey:UIImagePickerControllerEditedImage];
          // AND the original image works great
  myUIImageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
          // AND do whatever you want with it, (NSDictionary *)info is fine now
  UIImage *myImage = [info objectForKey:UIImagePickerControllerEditedImage];
}

您可以编辑您的图像.试试这个,它可能适用于您的应用程序.谢谢!

You can edit ur image. Try this it may work for your application.Thanks!

这篇关于UIImagePickerControllerEditedImage 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

上一篇:如何在IOS中查看网络2G或3G? 下一篇:如何通过单独提供密钥文件来播放 m3u8 加密播放列表?

相关文章