Table of Contents

Class TwainOptions

Namespace
NAPS2.Scan
Assembly
NAPS2.Sdk.dll

Scanning options specific to the TWAIN driver.

public class TwainOptions
Inheritance
TwainOptions

Properties

Dsm

The DSM version of TWAIN to use. Drivers/Windows usually come bundled with an Old version, while NAPS2 itself provides a New version. This is the most common thing to try changing if you have compatibility issues. You can also use NewX64 to access 64-bit TWAIN drivers but usually they don't exist, everything is generally 32-bit.

public TwainDsm Dsm { get; set; }

Property Value

TwainDsm

IncludeWiaDevices

Whether to include include devices that start with "WIA-" in GetDeviceList. Windows makes WIA devices available to TWAIN applications through a translation layer. By default they are excluded, since NAPS2 supports using WIA devices directly.

public bool IncludeWiaDevices { get; set; }

Property Value

bool

ShowProgress

Whether to show the TWAIN progress UI. This only matters when ScanOptions.UseNativeUI is false (otherwise the full UI is shown regardless).

public bool ShowProgress { get; set; }

Property Value

bool

TransferMode

The transfer mode used for TWAIN, either Native or Memory. By default Memory is used.

public TwainTransferMode TransferMode { get; set; }

Property Value

TwainTransferMode