Android resizable rectangle crop

大憨熊 提交于 2019-11-29 22:32:42

问题


I need to crop a picture using a resizable rectangle based on user touch events. I'm doing this because the crop intent feature isn't supported by all devices, so I'm creating my own.

I have the original image as a bitmap and it's displayed on the screen as an image view.

Now what I need to do next is have a rectangle (already know size it needs to be) that can be resized and moved for the user to crop the image (Say get a face).

How can I create a resizable rectangle like this?


回答1:


CropImage has worked great for me.



来源:https://stackoverflow.com/questions/11335079/android-resizable-rectangle-crop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!