TWAIN-Samples

所属分类:中间件编程
开发工具:C/C++
文件大小:5769KB
下载次数:66
上传日期:2013-01-25 16:09:37
上 传 者zhangyibao168
说明:  基于TWAIN协议开发的DSN和DS例子
(Based on the TWAIN protocol development DSN and DS example)

文件列表:
TWAIN-Samples (0, 2013-01-21)
TWAIN-Samples\common (0, 2013-01-21)
TWAIN-Samples\common\Common.h (9078, 2013-01-21)
TWAIN-Samples\common\CommonTWAIN.cpp (17698, 2013-01-21)
TWAIN-Samples\common\CommonTWAIN.h (22132, 2013-01-21)
TWAIN-Samples\common\CTiffWriter.cpp (9223, 2013-01-21)
TWAIN-Samples\common\CTiffWriter.h (9203, 2013-01-21)
TWAIN-Samples\common\TwainString.cpp (166747, 2013-01-21)
TWAIN-Samples\common\TwainString.h (16419, 2013-01-21)
TWAIN-Samples\pub (0, 2013-01-21)
TWAIN-Samples\pub\bin (0, 2013-01-21)
TWAIN-Samples\pub\bin\Thumbs.db (4608, 2013-01-21)
TWAIN-Samples\pub\bin\TWAIN_logo.png (61752, 2013-01-21)
TWAIN-Samples\pub\external (0, 2013-01-21)
TWAIN-Samples\pub\external\bin (0, 2013-01-21)
TWAIN-Samples\pub\external\bin\FreeImage.dll (1093632, 2013-01-21)
TWAIN-Samples\pub\external\bin\FreeImagedx64.dll (3949568, 2013-01-21)
TWAIN-Samples\pub\external\bin\FreeImagex64.dll (1550848, 2013-01-21)
TWAIN-Samples\pub\external\bin\libfreeimage-3.13.1.dylib (9400192, 2013-01-21)
TWAIN-Samples\pub\external\include (0, 2013-01-21)
TWAIN-Samples\pub\external\include\FreeImage.h (53324, 2013-01-21)
TWAIN-Samples\pub\external\include\twain.h (96294, 2013-01-21)
TWAIN-Samples\pub\external\lib (0, 2013-01-21)
TWAIN-Samples\pub\external\lib\FreeImage.lib (55176, 2013-01-21)
TWAIN-Samples\pub\external\lib\FreeImagedx64.lib (50164, 2013-01-21)
TWAIN-Samples\pub\external\lib\FreeImagex64.lib (49930, 2013-01-21)
TWAIN-Samples\pub\include (0, 2013-01-21)
TWAIN-Samples\pub\lib (0, 2013-01-21)
TWAIN-Samples\Twain_App_sample01 (0, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\ChangeLog.txt (5499, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Doxyfile (10664, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer (0, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer\App Installer 32.vdproj (33773, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer\App Installer 64.vdproj (38088, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer\App Installer.sln (1066, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer\BannerTWAIN.bmp (3616, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\Installer\twain.ico (7358, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\license.txt (1737, 2013-01-21)
TWAIN-Samples\Twain_App_sample01\src (0, 2013-01-21)
... ...

TWAIN Data Source [DS] When finished this will be a TWAIN version 2.0 of the specification compliant data source. Instead of interfacing with a real scanner, it talks to a virtual scanner. The virtual scanner acquires its image from a file on disk. This code can be used as a sample for building your own data source. One way to start would be to inherit the CTWAINDS_Base class and implement the pure virtual functions. There is a file, TWAIN1.9_compliancy_checklist.txt, that contains everything that a source is required to support in order to be TWAIN compliant. The FreeImage library is used by the virtual scanner to perform transforms on the base image to meet the negotiated capabilities. You will need to have the FreeImage files installed on your system for this source to work properly. FreeImage website: http://freeimage.sourceforge.net The DS reads an environment variable, CAP_XFERCOUNT, to get the number of times to send an image. By default only 1 is sent. Setting this to -1 will make the source choose a random number. The source code is documented using the Doxygen documentation system. Please refer to the TWAIN spec from http://www.TWAIN.org for further details on TWAIN. Installation ------------ [Linux] - install QT 4.5.3 then run it to generate makefiles - make - copy images/TWAIN_logo.png to /usr/local/lib/twain/sample2 - copy src/TWAINDS_Sample01.ds to /usr/local/lib/twain/sample2 notes: it is a future goal to have "make install" do the above copies. [Windows] - install QT 4.5.3 SDK for windows - Set environment variable QTDIR and/or QTDIR_*** to qt directory (Ex. QTDIR=C:\Qt\2009.02\qt QTDIR_***=C:\Qt\2009.02_x***\qt) - QMake is used to generate the makefiles. You can get a copy of this free in any QT Open Source distribution. Please see http://www.trolltech.com for more info. - copy the TWAIN_logo.png and TWAINDS_Sample[32|***].ds to /Windows/twain_[32|***]/sample2 directory. - Or use the provided Visual Studio project files. [MAC] - *** It is TWAIN 1.9 complient - install QT 4.6.2 SDK for MAC - install Xcode - build the project - build will automatically copy DS bundle to /Library/Image Capture/TWAIN Data Sources/ - original: fredh@jflinc.com, May 14, 2005 - updated: fredh@jflin.com, Nov 23, 2007 - updated: jimw@jflin.com, Dec 10, 2007 - updated: mihailm@jflin.com, Dec 23, 2009 - updated: mihailm@jflin.com, Dec 30, 2009 - updated: mihailm@jflin.com, Apr 20, 2010

近期下载者

相关文件


收藏者