2014-04-04 06:52:11 +08:00
|
|
|
TWAIN Application-Side Library
|
2014-04-03 07:01:21 +08:00
|
|
|
==============================
|
|
|
|
|
2014-04-04 06:52:11 +08:00
|
|
|
Info
|
2014-04-03 07:01:21 +08:00
|
|
|
--------------------------------------
|
2014-04-06 08:14:19 +08:00
|
|
|
This is a dotnet library created to work with [TWAIN](http://twain.org/) interface.
|
2014-04-15 07:51:36 +08:00
|
|
|
This project has these features:
|
2014-04-03 07:01:21 +08:00
|
|
|
|
2014-04-04 06:52:11 +08:00
|
|
|
* Targets latest TWAIN version (2.3 at the moment)
|
2014-04-13 21:30:39 +08:00
|
|
|
* Supports all the TWAIN functions in the spec
|
2014-04-15 07:51:36 +08:00
|
|
|
* Hosts internal message loop so no need to hook into application UI thread
|
2014-04-04 06:52:11 +08:00
|
|
|
|
2014-04-15 07:51:36 +08:00
|
|
|
The solution contains tester projects in winform, wpf, and even (gasp!) console.
|
2014-04-08 10:50:09 +08: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 21:30:39 +08: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-15 07:51:36 +08: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.
|