Leadtools.Twain Getting Started

Summary

For pointers to sample programs that demonstrate many features, see the table below:

.NET
.NET Framework

.NET

Redistributables Paths

Path Target Platform
<installdir>\Bin\net .NET 6+
Assembly - Class/Namespace Comments
Leadtools.Twain.DLL - Leadtools.Twain The Leadtools.Twain namespace provides support for TWAIN scanning functionality.

Dependencies

Library Description Dependencies
Leadtools.Windows.Media.TransitionBase.dll Core Library Leadtools.dll
NuGet PackageDescription
Leadtools.Twain Enhanced TWAIN Library

Sample Programs

Demo Name Source Code Path Pre-Compiled Executable Path Description
Fast TWAIN \Examples\Scanning\DotNet\FastTwainDemo\net \Bin\net\FastTwainDemo_Original.exe

Demonstrates Fast Twain scanning support.

Analyzes the TWAIN source, considering the requested bits per pixel, image type and compression, and finds the best compression type, transfer mode and buffering schemes to get the best performance possible.

Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN \Examples\Scanning\DotNet\TwainDemo\net \Bin\net\TwainDemo_Original.exe

Demonstrates TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN High Level \Examples\Scanning\DotNet\TwainHighDemo\net \Bin\net\TwainHighDemo_Original.exe

Demonstrates the high-level LEADTOOLS TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN Multi-Page \Examples\Scanning\DotNet\TwainMultipageDemo\net \Bin\net\TwainMultiPageDemo_Original.exe

Demonstrates the multi-page scanning with LEADTOOLS TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN With Barcode Separator \Examples\Scanning\DotNet\TwainWithBarcodeSeparatorDemo\net \Bin\net\TwainWithBarcodeSeparatorDemo_Original.exe

Demonstrates TWAIN scanning and barcode separation feature.

  • Scans pages from a TWAIN source and saves the acquired pages to multi-page TIFF files.

    Uses the LEADTOOLS barcode engine to search for Code128 barcodes on the pages.

    If a user-specified barcode string is detected, the separator is saved to a new TIFF file, which is appended with all subsequent pages until a new separator is detected.

Demo Name Source Code Path Pre-Compiled Executable Path Description
WIA \Examples\Scanning\DotNet\WiaDemo\net \Bin\net\WiaDemo_Original.exe

Demonstrates WIA scanning features.

  • Select WIA source
  • Acquire images from WIA sources
  • Display images acquired from WIA sources
  • Save images acquired from WIA sources
Demo Name Source Code Path Description
Leadtools.WebScanning.Plugin \Examples\Scanning\DotNet\WebScanning.Plugin\net

ActiveX plugin for Internet Explorer to start Leadtools.WebScanning.Host application.

This plugin is registered in WebScanning MSI installation process.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Leadtools.WebScanning.Host \Examples\Scanning\DotNet\WebScanning.Host\net \Bin\net\Leadtools.WebScanning.Host.exe

Hosts Leadtools.Services.Twain service.

A custom application url is used for lunaching this application from browsers.
Use "Utils.RegisterAppUrl" method to register a custom application url (for details, please check the Main method implementation of this demo in Program.cs ).

For Internt Explorer: an ActiveX plugin (Leadtools.WebScanning.Plugin.dll) is used for launching this application.

.NET Framework

Redistributables Paths

Path Target Platform
<installdir>\Bin\DotNet4\Win32 x86 .NET 4 or 4.5
<installdir>\Bin\DotNet4\x64 x64 .NET 4 or 4.5
Assembly - Class/Namespace Comments
Leadtools.Twain.DLL - Leadtools.Twain The Leadtools.Twain namespace provides support for TWAIN scanning functionality.

Dependencies

Library Description Dependencies
Leadtools.Windows.Media.TransitionBase.dll Core Library Leadtools.dll
NuGet PackageDescription
Leadtools.Twain Enhanced TWAIN Library

Sample Programs

Demo Name Source Code Path Pre-Compiled Executable Path Description
Fast TWAIN \Examples\Scanning\DotNet\FastTwainDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\FastTwainDemo.exe

Demonstrates Fast Twain scanning support.

Analyzes the TWAIN source, considering the requested bits per pixel, image type and compression, and finds the best compression type, transfer mode and buffering schemes to get the best performance possible.

Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN \Examples\Scanning\DotNet\TwainDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\TwainDemo.exe

Demonstrates TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN High Level \Examples\Scanning\DotNet\TwainHighDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\TwainHighDemo.exe

Demonstrates the high-level LEADTOOLS TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN Multi-Page \Examples\Scanning\DotNet\TwainMultipageDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\TwainMultiPageDemo.exe

Demonstrates the multi-page scanning with LEADTOOLS TWAIN scanning features.

  • Select TWAIN source
  • Acquire images from TWAIN sources
  • Display images acquired from TWAIN sources
  • Save images acquired from TWAIN sources
Demo Name Source Code Path Pre-Compiled Executable Path Description
TWAIN With Barcode Separator \Examples\Scanning\DotNet\TwainWithBarcodeSeparatorDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\TwainWithBarcodeSeparatorDemo.exe

Demonstrates TWAIN scanning and barcode separation feature.

  • Scans pages from a TWAIN source and saves the acquired pages to multi-page TIFF files.

    Uses the LEADTOOLS barcode engine to search for Code128 barcodes on the pages.

    If a user-specified barcode string is detected, the separator is saved to a new TIFF file, which is appended with all subsequent pages until a new separator is detected.

Demo Name Source Code Path Pre-Compiled Executable Path Description
WIA \Examples\Scanning\DotNet\WiaDemo\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\WiaDemo.exe

Demonstrates WIA scanning features.

  • Select WIA source
  • Acquire images from WIA sources
  • Display images acquired from WIA sources
  • Save images acquired from WIA sources
Demo Name Source Code Path Description
Leadtools.WebScanning.Plugin \Examples\Scanning\DotNet\WebScanning.Plugin\fx

ActiveX plugin for Internet Explorer to start Leadtools.WebScanning.Host application.

This plugin is registered in WebScanning MSI installation process.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Leadtools.WebScanning.Host \Examples\Scanning\DotNet\WebScanning.Host\fx \Bin\DotNet4\<Win32/Win32/x64/x64>\Leadtools.WebScanning.Host.exe

Hosts Leadtools.Services.Twain service.

A custom application url is used for lunaching this application from browsers.
Use "Utils.RegisterAppUrl" method to register a custom application url (for details, please check the Main method implementation of this demo in Program.cs ).

For Internt Explorer: an ActiveX plugin (Leadtools.WebScanning.Plugin.dll) is used for launching this application.

See Also

Reference

Introduction

Getting Started (Guide to Example Programs)

Programming with LEADTOOLS TWAIN Functions

Summary of Supported File Formats

Tutorials

LEADTOLLS SDK Tutorials

Version History

Leadtools.Twain Assembly Changes

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.