ImagePicker库与自定义作物rect? [英] ImagePicker Library with custom crop rect?

查看:80
本文介绍了ImagePicker库与自定义作物rect?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找很长一段时间,现在试图找到一个自定义UIImagePickerController类库,使自定义裁切大小。我也已阅读过这个网站和其他人的一些帖子:

I have been searching around for a long time now trying to find a custom UIImagePickerController-like library that enables custom crop sizes. I've also read a number of posts on this site and others:

  • Custom image crop in IOS
  • UIImage: Resize then crop
  • Cropping a UIImage
  • Custom crop rect for UIImagePickerController

注意大多数问题解决如何有效地裁剪图像一旦你有了资源,但大多数不解决自定义作物rect。有很多其他的答案,所有指向苹果的文档,说,你不能修改他们的UIImagePickerController有自定义裁剪大小。这是伟大的知道,但我发现这是荒唐的,没有一个图书馆在网络上,使自定义作物矩形。在任何地方真的没有资源吗?!?!?

As you'll notice most of the questions address how to effectively crop an image once you have the resource, but most don't address a custom crop rect. There are plenty of other answers that all point to Apple's documentation which states that you can't modify their UIImagePickerController to have custom crop size. That's great to know, however I find it absurd that there isn't a library on the web that enables custom crop rects. Is there really no resource anywhere?!?!?

我会付钱给一个好的图书馆。有人知道吗?

I would pay money to have a good library for this. Does anybody know of one?

推荐答案

查看 GKImagePicker

示例项目只有iphone并且只支持相册,但我可以很容易地扩展它包括ipad和camera。我已经使用它来做一个自定义裁剪视图,它是一个圆角矩形。如果我来到它,我会把我的工作成一个框架。

The sample project only has iphone and only supports photo album, but I was fairly easily able to extend it to include ipad and camera. I have used it to make a custom crop view that it a rounded rectangle. If i get around to it I'll turn my work into a framework.

这篇关于ImagePicker库与自定义作物rect?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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