Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, August 16, 2005 12:50:31 PM(UTC)

Gabe  
Gabe

Groups: Registered, Tech Support
Posts: 46


LEADTwainCapHelper v1.0. Assists in transitioning from our older Twain interface to our newer Twain interface for COM

VB 6.0 project with a class object that wraps our new Twain COM object. The class object's properties and methods were designed to be equivalent (as much as possible) to the methods and properties of our older Twain interface (in capabilities only!)
A sample project is provided to show you how to use the class object. If you have any questions or come across any issues with the class, please post back to this thread
Additional information:





How to convert from our old Twain interface (either LEAD Main Control or RasterTwain from versions less than v14) to our new Twain interface (RasterTwain2 in version 13 and RasterTwain in version 14).



How to convert from our old Twain interface (either LEAD Main Control or RasterTwain) to our new Twain interface (RasterTwain2).
Map of properties, methods, and events from old to new
OLD -----> NEW
--------------------------------------
EnableTwainAutoFeed -----> CAP_AUTOFEED
EnableTwainDuplex -----> CAP_DUPLEXENABLED
EnableTwainEvent -----> N/A
EnableTwainFeeder -----> CAP_FEEDERENABLED
EnableTwainFileEvent -----> N/A
EnableTwainFileFormatEvent -----> N/A
TwainAcquire -----> Acquire
TwainAcquireFile -----> Acquire - Also must set CAP_XFERMECH to L_TWSX_FILE and set FileTransferName property to a path.
TwainAppAuthor -----> ManName
TwainAppFamily -----> ProdFamily
TwainAppName -----> AppName
TwainBits -----> ICAP_BITDEPTH
TwainCloseSession -----> N/A
TwainContrast -----> ICAP_CONTRAST
TwainDuplex -----> CAP_DUPLEX
TwainEnumSources -----> SourceName
TwainFile (event) -----> N/A
TwainFileFormat (event) -----> ICAP_IMAGEFILEFORMAT
TwainFileFormatStatus -----> N/A
TwainFlags -----> Pass value in Aquire to show or hide user interface.
TwainFrameHeight -----> ICAP_FRAMES
TwainFrameLeft -----> ICAP_FRAMES
TwainFrameTop -----> ICAP_FRAMES
TwainFrameWidth -----> ICAP_FRAMES
TwainIntensity -----> ICAP_BRIGHTNESS
TwainMaxPages -----> CAP_XFERCOUNT
TwainPage (event) -----> AcquirePageEvent (event)
TwainPixelType -----> ICAP_PIXELTYPE
TwainRealize -----> N/A
TwainRes -----> ICAP_XRESOLUTION / ICAP_YRESOLUTION
TwainSelect -----> SelectSource
TwainSourceCount -----> SourceCount
TwainSourceList -----> SourceName
TwainSourceName -----> SelectedSourceName to Get / AquireSourceName to Set
Where ICAP_X and CAP_X you will need to use GetCapability2 and SetCapability2 to get and set the values.

File Attachment(s):
COM-TWAIN-LEADTwainHelperv1.0.zip (24kb) downloaded 116 time(s).

Edited by moderator Friday, August 9, 2019 8:53:56 AM(UTC)  | Reason: Not specified

Gabe
Developer Support
LEAD Technologies, Inc.

LEAD Logo
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.062 seconds.