We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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(); } }
The text was updated successfully, but these errors were encountered:
Thanks for the issue. I will link this to #79 and will close this one.
Sorry, something went wrong.
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??
No branches or pull requests
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);
The text was updated successfully, but these errors were encountered: