Open lainz opened 4 years ago
Indeed.
And for Linux: https://wiki.lazarus.freepascal.org/PascalSane
The thing is that I don't have a scanner so I cannot test it as I program.
Ok, I can test on Windows but I'm not sure if I can test with the virtual machine on Linux..
Seems that there is a scanner emulator for Windows at least https://developer.dynamsoft.com/dwt/kb/2659
Btw is not a priority, just an idea coming to mind as always.
Sure. Sorry I was not responding. I am not sure yet how I am going to do on Linux so I did not know what to say.
Anyway I think there is a chance this can be done.
The idea is to scan an image directly from LazPaint
TWAIN Libraries https://torry.net/pages.php?id=507
I used this one and works fine: delphitwainkluug.zip
With the demo project for Lazarus I've seen a dialog that shows 2 scanners (the same scanner with different scanning interface).
The TWAIN scanning displays another program that will do the scanning, in this case an HP scanning application, when I hit 'done' it shows the image inside the lazarus application. That application has options like rotating and more.
The WIA scanning displayed a small window (I guess is managed by Windows 10) with less options, to choose black and white, color, grayscale and custom. When I press 'digitize' it brings the image inside the lazarus application.