如何裁剪图像,而不在Android中使用意向 [英] How to Crop Images without using Intent in Android
问题描述
我想裁剪图像我已经使用以下
I am trying to crop an image I have used the code below
意图I =新的意图(Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);
i.putExtra(裁剪,真);
startActivityForResult(ⅰ,1);
Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); i.putExtra("crop", "true");
startActivityForResult(i, 1);
不过,我必须做裁剪图像而无需使用意向。并且还具有自定义croping UI。 请帮我该怎么做。
But i have to do crop image without using Intent. And also have to customize the croping UI. please help me out how to do that.
我不应该使用新意图(com.android.camera.action.CROP);
致谢
Vikash
I am not supposed to use new Intent("com.android.camera.action.CROP");
with Thanks
Vikash
推荐答案
下面是工作同样喜欢Android系统默认农作物意向的示例项目。 CropImage 如果你真的希望去尝试你说的话,首先看在这个环节,希望它可以帮助你找到自己的方式。
Here is a sample project that Works same like Default Crop Intent of Android. CropImage If you really looking to try what you said,First look in to this link,Hope it may help you to find your way.
这篇关于如何裁剪图像,而不在Android中使用意向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!