Click or drag to resize

TwainDataTransferEventArgs Class

This class is used with the TwainDataTransfer event to allow the acquired data to be handled by the developer instead of by DotTwain.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    Atalasoft.TwainTwainDataTransferEventArgs

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.0.0.0.0.297 (.NET 4.5.2, x86)
Syntax
public class TwainDataTransferEventArgs : EventArgs

The TwainDataTransferEventArgs type exposes the following members.

Properties
  NameDescription
Public propertyCancel
Set to true if you want to cancel this acquisition and continue to the next. DotTwain will free the memory used during this acquisition.
Public propertyData
A pointer to the data acquired. If this data is being handled by the application it's the application's responsibility to free this memory.
Public propertyDataHandled
Set to true if the application will handle processing the data instead of DotTwain.
Public propertyDataLength
The number of bytes stored in the Data pointer.
Public propertyExtendedImageInfo
Gets a Hashtable containing extended image information retrieved from the device for this acquisition.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
This can be useful for handling data formats that are not supported by DotTwain.
See Also