Win32 SANE interface...

Brian Macy (bmacy@sunshinecomputing.com)
Sat, 20 Feb 1999 11:05:49 -0800

This thing is currently butt simple. I hacked out the interface last night
because I couldn't sleep.

Features:
- File::Scan - prompts for host and user names and then does a full page
scan using default settings on the server. Shows the picture FitToWindow
(maintains proper scale) on the program.
- Edit::Copy - copies the full page scan into the Clipboard so you can paste
it into your favorite editor (I recommend PixWizard or PaintShop Pro).

That's it. It will be Open Sourced so others can help on it too.

Current Limitations:
- It assumes you want to scan off the first device found on the host
- No preview or scan area selection
- No setting of any sort
- Only works if the host sends it RGB 8bits/pixel data back.
- No status while it is scanning... the program just locks for a while.
- Probably lots of bugs
- Builds only with Borland (possibly the 5.x series only) and OWL

Like I said, it will be Open Sourced. It uses a simple C++ implemenation of
the SANE network protocol. I was hoping that the TWAIN driver that was
released would have taken care of my needs but since it doesn't work at all
for me *and* the DLL itself is not open source, it is worthless for me. Many
of you may find this program worthless too but it does the job for me and
you will have the ability to fix it in the future.

Details:
- Executable is available at ftp.sunshinecomputing.com:/pub/winsane
- Source for application will be available when I come up with a decent
license (GPL is too restrictive)
- The 3rd party library I use and help develop is at www.ysl.org . Great
little library (unbiased opinion of course:) and at one time built in Linux
egcs and Borland C++ (currently handles only Borland Win32 but Linux and
Win32 egcs will return along with many other compilers). The latest release
of the library doesn't support GUI builds (I had to hack them in) and there
is a bug in YSocketStream::Read_v function that makes it not work (my bug:).
Anyways, the YSLs would welcome contributions (in like style).

Brian Macy

--
Source code, list archive, and docs: http://www.mostang.com/sane/
To unsubscribe: echo unsubscribe sane-devel | mail majordomo@mostang.com