Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Crop Images without using Intent in Android

Tags:

android

I am trying to crop an image I have used the code below

Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); i.putExtra("crop", "true");
startActivityForResult(i, 1);

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.

I am not supposed to use new Intent("com.android.camera.action.CROP");
with Thanks
Vikash

like image 736
Vikash Kumar Avatar asked Nov 16 '11 05:11

Vikash Kumar


2 Answers

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.

like image 63
MKJParekh Avatar answered Nov 10 '22 11:11

MKJParekh


You can use createBitmap() to extract a subset of a current bitmap.

like image 22
Kurtis Nusbaum Avatar answered Nov 10 '22 09:11

Kurtis Nusbaum