Crop an Image by passing the image file path in Android

前端 未结 3 783
遥遥无期
遥遥无期 2020-12-03 12:38

I have tried the below code. However, it always results the 160*160 dimension image.

try {   
    //call the standard crop action intent (the user device ma         


        
3条回答
  •  失恋的感觉
    2020-12-03 13:08

    Android doesn't support a cropping intent built in. You should not assume it's available.

    Instead you should use your own solution, or use a third party library, like this one:

    https://github.com/ArthurHub/Android-Image-Cropper

    Read more about it here:

    https://commonsware.com/blog/2013/01/23/no-android-does-not-have-crop-intent.html

提交回复
热议问题