简体   繁体   English

裁剪并保存图像android

[英]Crop and Save image android

i am doing an android app that launches camera and capture an image, then crop and save the image. 我正在做一个启动照相机的Android应用程序并捕获图像,然后裁剪并保存图像。 Then takes the image for some process. 然后对图像进行一些处理。 i was trying with some suggestions and tutorials by searching on Google. 我通过在Google上搜索尝试了一些建议和教程。 but i am getting error after cropping. 但裁剪后出现错误。 The image is being cropped and actual image remains in SD-Card also the cropped image saved as "image~2" in same location. 正在裁切图像,实际图像仍保留在SD卡中,裁切后的图像另存为“ image〜2”在同一位置。 but while we try to use the cropped image filenotfoundException is returned. 但是,当我们尝试使用裁剪的图像时,文件filenotfoundException被返回。 Any one please help me. 任何人请帮助我。

"can i post my code?" “我可以发布我的代码吗?” - You should, actually, if you want some help here... Anyway considering the exception, you're searching for the image where it is not. -实际上,如果您想在这里寻求帮助,则应该...无论如何考虑到异常,您都在寻找不存在的图像。

Or you can try this: https://github.com/edmodo/cropper 或者您可以尝试以下方法: https : //github.com/edmodo/cropper

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM