2014-04-03 18:52:11 -04:00
|
|
|
TWAIN Application-Side Library
|
2014-04-02 19:01:21 -04:00
|
|
|
==============================
|
|
|
|
|
2014-04-03 18:52:11 -04:00
|
|
|
Info
|
2014-04-02 19:01:21 -04:00
|
|
|
--------------------------------------
|
2014-04-05 20:14:19 -04:00
|
|
|
This is a dotnet library created to work with [TWAIN](http://twain.org/) interface.
|
2014-04-14 19:51:36 -04:00
|
|
|
This project has these features:
|
2014-04-02 19:01:21 -04:00
|
|
|
|
2014-04-03 18:52:11 -04:00
|
|
|
* Targets latest TWAIN version (2.3 at the moment)
|
2014-04-13 09:30:39 -04:00
|
|
|
* Supports all the TWAIN functions in the spec
|
2014-04-14 19:51:36 -04:00
|
|
|
* Hosts internal message loop so no need to hook into application UI thread
|
2014-04-03 18:52:11 -04:00
|
|
|
|
2014-04-14 19:51:36 -04:00
|
|
|
The solution contains tester projects in winform, wpf, and even (gasp!) console.
|
2014-04-07 22:50:09 -04:00
|
|
|
A nuget package is also [available here](https://www.nuget.org/packages/ntwain)
|
|
|
|
|
|
|
|
Using the lib
|
|
|
|
--------------------------------------
|
|
|
|
To properly use this lib you will need to be reasonably familiar with the TWAIN spec
|
|
|
|
and how it works in general. Except for certain "important" calls that drive the
|
2014-04-13 09:30:39 -04:00
|
|
|
TWAIN state change, most triplet operations are only availble as-is so you will need to know
|
|
|
|
when and how to use them. There are no high-level, single-line scan-a-page-for-me-now functions.
|
|
|
|
|
|
|
|
At the moment this lib does not provide ways to parse transferred image data and require
|
|
|
|
consumers to do the conversion. The winform project contains one such
|
2014-04-14 19:51:36 -04:00
|
|
|
example for handling DIB image in native transfer.
|
|
|
|
|
|
|
|
The main class to use is TwainSession. New it up, hook into the events, and start calling
|
|
|
|
all the TWAIN functions provided through it.
|