Hi!
Has anyone experiences accessing a scanner with lazarus? Perhaps even cross-platform?
I'm dreaming of embedding scanner-functionality in one of our programs.
Any hint would be appreciated...
regards
Lukas

Mailing lists / lazarus / 2008-11
4 messages · 3 people · –
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi!
Has anyone experiences accessing a scanner with lazarus? Perhaps even cross-platform?
I'm dreaming of embedding scanner-functionality in one of our programs.
Any hint would be appreciated...
regards
Lukas
Crossplattform is difficult
Windows uses Twain
(http://home.tiscali.nl/guusscholten/Twain.html)
Linux uses Sane
Attached are libsane bindings for lazarus. Everything works except functions SANE_OPTION_IS_ACTIVE and SANE_OPTION_IS_SETTABLE. I think these would be easily fixed by someone with a better grasp of bitwise operations :)
Let me know if you need any help implementing use of libsane
Malcolm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sane.pas
Type: text/x-pascal
Size: 8113 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081105/f6955eba/attachment.bin
Thanks to all that helps. I'll have a look on that codes...
regards
Lukas