Closed Kishan7up closed 3 years ago
Thanks for the issue. I will link this to #79 and will close this one.
You Can Use This Library In Tap Of Upload Image Case : implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
- Manifest :
- Add This Line in Switch-case : PICK_REQUEST/ CAMERA_REQUEST: CropImage.activity(uri) .setGuidelines(CropImageView.Guidelines.ON) .start(this);
- if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) { CropImage.ActivityResult result = CropImage.getActivityResult(data); if (resultCode == RESULT_OK) { Uri resultUri = result.getUri(); Bitmap bitmap = null; try { bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), resultUri); mPhotoEditorView.getSource().setImageBitmap(bitmap);
} catch (IOException e) { e.printStackTrace(); } } else if (resultCode == CropImage.CROP_IMAGE_ACTIVITY_RESULT_ERROR_CODE) { Exception error = result.getError(); } }
How did you crop image after highlighting or writing text??
You Can Use This Library In Tap Of Upload Image Case : implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
Manifest :
Add This Line in Switch-case : PICK_REQUEST/ CAMERA_REQUEST: CropImage.activity(uri) .setGuidelines(CropImageView.Guidelines.ON) .start(this);
if (requestCode == CropImage.CROP_IMAGE_ACTIVITY_REQUEST_CODE) { CropImage.ActivityResult result = CropImage.getActivityResult(data); if (resultCode == RESULT_OK) { Uri resultUri = result.getUri(); Bitmap bitmap = null; try { bitmap = MediaStore.Images.Media.getBitmap(getContentResolver(), resultUri); mPhotoEditorView.getSource().setImageBitmap(bitmap);