Skip to content

Commit 27fd058

Browse files
authored
Merge pull request #26 from bagolysz/bugfix/fix-invert-color-not-working
Fix invert color function not working
2 parents b81165d + 40ae2c7 commit 27fd058

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

documentscanner/src/main/java/com/labters/documentscanner/base/DocumentScanActivity.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ protected Bitmap getCroppedImage() {
142142
float y2 = (Objects.requireNonNull(points.get(1)).y) * yRatio;
143143
float y3 = (Objects.requireNonNull(points.get(2)).y) * yRatio;
144144
float y4 = (Objects.requireNonNull(points.get(3)).y) * yRatio;
145-
return nativeClass.getScannedBitmap(selectedImage, x1, y1, x2, y2, x3, y3, x4, y4);
145+
146+
Bitmap finalBitmap = getBitmapImage();
147+
return nativeClass.getScannedBitmap(finalBitmap, x1, y1, x2, y2, x3, y3, x4, y4);
146148
} catch (Exception e) {
147149
showError(CropperErrorType.CROP_ERROR);
148150
return null;

0 commit comments

Comments
 (0)