bgrabitmap / lazpaint

🎨 Cross-platform image editor with raster and vector layers similar to Paint.Net written in Lazarus (Free Pascal)
https://lazpaint.github.io/
GNU General Public License v3.0
406 stars 57 forks source link

Acquire image with a scanner #156

Open lainz opened 4 years ago

lainz commented 4 years ago

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.

circular17 commented 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.

lainz commented 4 years ago

Ok, I can test on Windows but I'm not sure if I can test with the virtual machine on Linux..

lainz commented 4 years ago

Seems that there is a scanner emulator for Windows at least https://developer.dynamsoft.com/dwt/kb/2659

lainz commented 4 years ago

Btw is not a priority, just an idea coming to mind as always.

circular17 commented 4 years ago

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.

Reaper10 commented 4 years ago

https://sourceforge.net/projects/scantoprinter/