-
-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
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
Additional "eraser" feature #52
Comments
Sorry but this package does no image manipulation at all. It just gives the rectangle, as you know. A long shot but maybe a plugin approach that can manipulate the image separately but I really don't know if it's warranted... |
@deakjahn What would be the solution then? I can imagine
What about adding an optional additionalDrawing: (Canvas canvas) {
final Paint myPaint = Paint()
..strokeWidth = SmoothBarcodeScannerVisor.STROKE_WIDTH
..color = Colors.white
..style = PaintingStyle.stroke;
canvas.drawPath(myPath, myPaint);
} |
Working on the subject. cf. openfoodfacts/smooth-app#5301 |
I can't yet see how that would be used. I mean, |
The fact that I need this feature in a concrete use-case shows that i's not just a theoretical "what if / just in case" feature request. You're right if you're talking about a fixed crop widget: a But it's already a bit different now, with the controller and separate "rotate" widgets: developers can use their own buttons and their own icons, put them where they want, or even not display any "rotate" buttons at all. If we're rather talking about a crop toolkit we keep the |
If you think that it's only an added callback, sure, go ahead, try it. |
Thank you @deakjahn! I haven't finished my code and tests yet, but on the crop_image side that will be just a |
Implemented by #53. |
In our project we now use the crop tool for receipts.
In some cases receipts contain user data inside the cropped area, and we should not display/upload it.
With an eraser button, the user would be able to erase part of the image. While still cropping it.
The text was updated successfully, but these errors were encountered: