Class that represent twain device.
            
Inheritance Hierarchy
TwainScanningDataSource
Namespace: TwainScanning
Assembly: TwainScanning (in TwainScanning.dll) Version: 1.3.0.0 (1.3.0.0)
Syntax
The DataSource type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| Acquire(Boolean, Boolean, DataSourceErrorInfo, NullableTwSX, Int32) | 
            Acquires images. Most simple way to scan. Preferred way for scanning in the console applications. 
            Function will not return until scanning is finished.
              | |
| Acquire(IImageCollector, Boolean, Boolean, NullableTwSX, NullableInt32) | 
             Allows to acquire images from the scanner synchronously. This function will not return until scanning is finished.
              | |
| AcquireAsync(IImageCollector, Boolean, Boolean, NullableTwSX, NullableInt32) | 
            Allows to acquire images from the scanner asynchronously. This function will return immediately.
              | |
| AcquireAsync(ImageCollectorOnFinishedDelegate, Boolean, Boolean, NullableTwSX, NullableInt32) | 
             Allows to acquire images from the scanner asynchronously.
              | |
| CallCustomTripletT | ||
| CancelCurrentScanning | 
            Cancels the current scanning.
              | |
| Dispose | 
            Closes source and performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
              | |
| Equals | Determines whether the specified Object is equal to the current Object.  (Inherited from Object.) | |
| Finalize | (Overrides ObjectFinalize.) | |
| GetHashCode | Serves as a hash function for a particular type.   (Inherited from Object.) | |
| GetType | Gets the Type of the current instance.  (Inherited from Object.) | |
| SetupFileTransferParams(TwFF, IEnumerableString, Boolean) | ||
| SetupFileTransferParams(TwFF, String, Boolean) | ||
| ToString | Returns a String that represents the current Object.  (Inherited from Object.) | 
Fields
| Name | Description | |
|---|---|---|
| ClearPage | 
            Stop scanning all pages from feeder. 
            Alias for [!:Settings.Feeder.ClearPage].
              | |
| ColorMode | 
            Represent color mode. 
            Alias for [!:Settings.ImageType.PixelType].
              | |
| PageSize | 
            Represent available PageSize. 
            Alias for [!:Settings.Page.Sizes].
              | |
| PixelDepth | 
             Represent pixel depth for current value. 
            Alias for [!:Settings.ImageType.BitDepth].
              | |
| Resolution | 
            Represent supported resolutions. 
            Alias for [!:Settings.Resolution.X] and [!:Settings.Resolution.Y].
              | |
| Settings | 
             Data source settings. Abstraction around capabilities of the device represented by the DataSource.
              | |
| TransferMechanism | 
            Represent supported transfer mechanism. 
            Alias for [!:Settings.Transfer.Mechanism].
              | |
| UseDuplex | 
            If duplex is enable. 
            Alias for [!:Settings.Duplex.Enabled].
              | |
| UseFeeder | 
            Represent if feeder is enable. 
            Alias for [!:Settings.Feeder.Enabled].
              | 
Properties
| Name | Description | |
|---|---|---|
| HasFeeder | 
            Is feeder suported on Twain Device.
              | |
| Identity | 
            Get identity of current scanner.
              | |
| Layout | 
            Property layout.
              | 
Events
| Name | Description | |
|---|---|---|
| AcquiringEvent | 
            Representing image acquiring events.
              | |
| ExtendedImageInformation | ||
| OnBatchFinished | 
            Occurse when batch scanning is finish.
              | |
| OnDeviceEvents | ||
| OnErrorEvent | 
            Represents errors which occur in Twain device.
              | |
| OnMemoryTransferProgressUpdate | ||
| OnScanningFinished | 
            Occurse when scanning is finish.
              | |
| OnSingleImageAcquired | 
            Provides data for the Device.ImageAcquired event.
              | 
See Also
Reference
SystemIDisposable