Skip to content

Commit

Permalink
Merge pull request #26 from bagolysz/bugfix/fix-invert-color-not-working
Browse files Browse the repository at this point in the history
Fix invert color function not working
  • Loading branch information
mayuce authored Oct 22, 2020
2 parents b81165d + 40ae2c7 commit 27fd058
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,9 @@ protected Bitmap getCroppedImage() {
float y2 = (Objects.requireNonNull(points.get(1)).y) * yRatio;
float y3 = (Objects.requireNonNull(points.get(2)).y) * yRatio;
float y4 = (Objects.requireNonNull(points.get(3)).y) * yRatio;
return nativeClass.getScannedBitmap(selectedImage, x1, y1, x2, y2, x3, y3, x4, y4);

Bitmap finalBitmap = getBitmapImage();
return nativeClass.getScannedBitmap(finalBitmap, x1, y1, x2, y2, x3, y3, x4, y4);
} catch (Exception e) {
showError(CropperErrorType.CROP_ERROR);
return null;
Expand Down

0 comments on commit 27fd058

Please sign in to comment.