如何在将其保存到IOS中的库中之前裁剪捕获的图像 [英] How to crop the captured image before saving it in gallery in IOS

查看:75
本文介绍了如何在将其保存到IOS中的库中之前裁剪捕获的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发相机应用程序。我正在使用UIImagePickerController捕获图像。之后将其保存在库中我想裁剪图像并需要将裁剪后的图像保存到图库中。

I am working on camera app. I am capturing an image by using UIImagePickerController.After that before saving it in gallery I want to crop the image and need to save the cropped image in gallery.

我搜索了谷歌,我发现样品从画廊中挑选图像,然后裁剪,这不是我的要求。可以任何身体已经工作了吗???如果您已完成任何教程/示例代码,请发布链接。提前谢谢

I searched on google ,I found samples to pick the images from gallery and then cropping which is not my requirement.Could any body have worked on this??? If you have gone through any tutorials/sample code please post the links.Thanks in advance

推荐答案

pust isallowediting = yes;对于选择器,我们可以编辑您从图库中捕获并选择的图像

pust isallowediting=yes; for picker so that we can edit image which you captured and selected from gallery also

UIImagePickerController *picker = [[UIImagePickerController alloc] init];
    picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
    picker.delegate = self;
    picker.isallowediting = yes;  

希望这些能帮到你

这篇关于如何在将其保存到IOS中的库中之前裁剪捕获的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆