--EZTwain Classic README.TXT
EZTWAIN Classic (eztw32.dll) is a Windows DLL that provides an easy
interface to the TWAIN image acquisition protocol.
This software is unsupported, public domain software.
Originally written by Spike McLarty and donated to the TWAIN Working Group, hosted for many years by Dosadi, it is now made available by Atalasoft, Inc.
It is free in both senses of the word: No fees, no restrictions.
You can download the latest version of EZTwain Classic, including
C source code and MSVC 6 project files, from:
http://www.eztwain.com/eztwain1.htm
Atalasoft does not officially provide support for EZTwain Classic, but offers a forum for community support at http://www.atalasoft.com/products/dotimage/forums
Atalasoft offers a comprehensive .NET imaging SDK called DotImage:
http://www.atalasoft.com/products/dotimage/
a TWAIN scanning SDK called DotTwain:
http://www.atalasoft.com/products/dotimage/dottwain
and an expanded version of EZTwain Classic (this library) called EZTwain Pro:
http://www.eztwain.com/eztwain3.htm
--History: See \EZTWAIN1\VC\EZTWAIN.H
--Overview of EZTwain
EZTWAIN functions are provided at several levels of abstraction: At the
highest level, a single call will acquire an image and either return a
handle to it (as a DIB - Device Independent Bitmap) or place it in the
Windows clipboard. There is also a single function that does all the work
of the 'Select Source' File menu item.
At the lowest level, there are functions to send individual triplets to the
Source Manager or to the currently open Data Source.
EZTWAIN is specifically designed to simplify the use of TWAIN in three cases:
** When the development language is not a mainstream C/C++ compiler - for
example, Visual Basic, Application Basic, database programming languages,
interpreted languages, LabView, Pascal, LISP, etc.
With these languages, using the standard TWAIN.DLL entry point directly
may be difficult or even impossible. I hope that EZTWAIN will bridge
this gap.
** When the image acquisition requirements are very simple. Many developers
just want to 'grab an image' without spending days or weeks understanding
TWAIN and its subtleties. For these developers, the full TWAIN protocol
is expensive overkill - EZTWAIN may meet their needs with a much
smaller learning and programming effort.
** Even skilled C programmers with weeks or months to spend on a full
TWAIN implementation can still become frustrated trying to get their code
to the point where it actually 'does something'. Calling the high-level
EZTWAIN functions should produce results in an hour or two, and then the
high-level calls can be refined into calls to functions at lower and
lower levels as needed to achieve more exotic effects.
-- Contents of the EZTwain Classic package (eztw1.zip)
If you unzip the distribution package to the root of a drive using
the path information, you'll get the folder \EZTWAIN1 at the top,
and the following files inside:
README.TXT this file.
ACCESS\EZTWAIN.BAS declaration file for MS Access
CLARION\EZTW32.LIB object library for use with Clarion
CLARION\EZTWAIN.CLW Clarion declarations (I think...)
CLARION\README.TXT notes on using EZTwain from Clarion
CSHARP\EZTWAIN.CS C# declarations
DBASE\EZTWAIN.H declarations for dBase
DELPHI\EZTWAIN.PAS declarations for Delphi
LotusScript\eztwain.lss declarations for Lotus Notes
PERL\EZTWAIN.PL declarations for Perl
PowerBASIC\eztwain.inc declarations for PowerBASIC
PowerBuilder\eztwain.txt declarations for PowerScript 10+
PowerBuilder\eztwain-pb9.txt declarations for PowerScript 9
PROGRESS\EZTWAIN.I declarations for Progress
VB.NET\EZTWAIN.VB declarations for VB.NET
VB\EZTWAIN.BAS declarations for VB5/6
VC\EZTWAIN.C source code of EZTwain DLL
VC\EZTWAIN.H declarations for C
VC\RESOURCE.H resource defines
VC\TWAIN.H TWAIN standard header file
VC\TWERP.C Twerp sample application, in C
VC\TWERP.ICO Twerp application icon
VC\TWERP.RC Twerp application resources
VC\VC.DSW MSVC 6.0 workspace for Eztwain and Twerp
VC\EZTW32\EZTW32.DEF export definition file for eztw32.dll
VC\EZTW32\EZTW32.DSP MSVC project file for eztw32.dll
VC\RELEASE\EZTW32.DLL pre-built release version of EZTwain DLL
VC\RELEASE\EZTW32.LIB link library of eztw32.dll
VC\RELEASE\TWERP32.EXE pre-built Twerp sample app
VC\TWERP32\TWERP32.DSP MSVC 6 project file for Twerp
VFP\EZTWAIN.PRG declarations for Visual FoxPro
-- Using EZTwain Classic
The EZTWAIN interface was designed to have easy-to-remember names; to
require very few parameters to functions; and to not require the use of
any data structures. For the high-level functions, passing 0 for all
parameters is a good way to start.
If you are programming in C, examine EZTWAIN.H and TWERP.C to see
how the EZTWAIN functions are declared and called. You may have to
configure your system to find the EZTWAIN.H file during compilation,
the EZTW32.LIB file during linking, and the EZTWAIN.DLL or EZTW32.DLL,
during execution.
For Microsoft Visual C++, these issues are taken care of if you open the
included project files - all the necessary files are found automatically.
For other development platforms, you will have to study your documentation
to learn three things:
1. How to declare DLL functions to be called.
If your platform can do this, it will be covered in the documentation, and
almost any programming language for Windows has a way to do this.
2. How to link to the DLL.
For C, C++, and Clarion you use a link-library, EZTW32.LIB - note that
Clarion needs a different format, so there are two copies of this file
in the package.
Your documentation should have a section like 'Linking to DLLs'.
For dynamic languages like Basic, you typically specify the name of the
DLL in some way, at or near the code that declares the EZTWAIN functions.
3. How to access the DLL at run-time.
Our declaration files for various languages will usually find
eztw32.dll if it is either in System32, or if it is placed in the same
folder as the .EXE that runs the application. It is not uncommon to
place eztw32.dll in the System32 folder (under the Windows home folder)
but this can cause problems if two applications are installed with
different versions of eztw32.dll - we recommend trying to install the
eztw32.dll in the application folder if that's possible.
-- How should I design TWAIN support into my program?
Start out by calling TWAIN_SelectImageSource - this call is simple, and
should be the easiest to debug. Alternatively, you could put in code to
call TWAIN_IsAvailable. Use the result of this call to disable, gray or
hide, or to enable your TWAIN facilities.
Then add the calls to TWAIN_AcquireNative or TWAIN_AcquireToClipboard.
Don't worry about passing proper Window handles at first. Notice also
that TWAIN_AcquireNative will disable and re-enable your app window, once
you decide to pass it in.
Once you have Select Source and Acquire working in your program, then it's
just a matter of deciding how much more you want. The simple behavior of
AcquireNative is attractive but limiting. AcquireNative treats every
Data Source as modal - disabling & closing the source after a single image
is acquired. To allow e.g. acquisition of multiple images, or
modeless Data Sources to function properly, you will have to dig into
the source code for EZTWAIN and make lower level calls
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
EZTwain 旨在通过 TWAIN 提供强大的扫描和图像输入,而程序员则以最小的工作量进行测量。 添加基本的 TWAIN 支持可以通过一个函数调用完成,但即使是最复杂的 TWAIN 项目也会通过使用 EZTwain Pro 简化和缩短。我们的代码向导将让你在几分钟内进行扫描,我们丰富的功能集不会限制您。 自1997年以来在世界各地使用;数百个经过良好测试的功能;具有示例和综合索引的广泛用户指南。日志记录和诊断功能是仅次于无的;无单位版税。EZTwain 可以从几乎任何编程语言调用 - 该工具包包括绑定:访问 (VBA)、C#、Clarion、dBASE、Delphi、LotusScript、Perl、PowerBasic、PowerScript、VB、VB.NET、MSVC/C++ 和 VFP。写入 BMP、PNG、GIF 和 JPG。 编写多页 TIFF、DCX 和 PDF。 图像显示和打印、过滤和后处理;空白页检测;条形码识别选项。
资源详情
资源评论
资源推荐
收起资源包目录
EzTWain_x32_免费版.zip (33个子文件)
CSHARP
EZTWAIN.CS 12KB
PowerBuilder
eztwain.txt 22KB
eztwain-pb9.txt 22KB
README.TXT 8KB
VB.NET
EZTWAIN.VB 31KB
PROGRESS
EZTWAIN.I 27KB
DBASE
EZTWAIN.H 21KB
LotusScript
eztwain.lss 24KB
VC
RELEASE
EZTW32.lib 16KB
Twerp32.exe 40KB
EZTW32.dll 64KB
TWAIN.H 57KB
VC.DSW 1004B
EZTWAIN.C 60KB
EZTW16
EZTWAIN.H 22KB
TWERP.C 13KB
RESOURCE.H 2KB
TWERP.RC 5KB
TWERP.ICO 766B
EZTW32
EZTW32.DSP 4KB
EZTW32.DEF 2KB
Release
Debug
TWERP32
TWERP32.DSP 4KB
Debug
DELPHI
EZTWAIN.PAS 22KB
EZTW32.dll 64KB
PERL
EZTWAIN.PL 19KB
PowerBASIC
eztwain.inc 24KB
CLARION
README.TXT 688B
EZTWAIN.CLW 22KB
EZTW32.LIB 2KB
eztw32.dll.1 64KB
ACCESS
EZTWAIN.BAS 21KB
VFP
EZTWAIN.PRG 20KB
VB
EZTWAIN.BAS 21KB
共 33 条
- 1
wdmsyf
- 粉丝: 18
- 资源: 79
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0