TwainController Methods |
The TwainController type exposes the following members.
Name | Description | |
---|---|---|
CloseSource | Use this method to close the connection to the device. | |
CloseSourceManager | Use to close the source manager and release Twain. | |
CreateTwainMemory | Returns a new TwainMemory class for the specified pointer. | |
Dispose | Closes any TWAIN connections and releases resources back to the system. | |
Dispose(Boolean) | Closes any TWAIN connections and releases resources back to the system. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allow the TwainController to chance to clean up any resources before being collected by the garbage
collector. (Overrides ObjectFinalize.) | |
FreeTwainMemory | Release memory allocated for TWAIN. | |
GetCapabilityArray | Retrieves an array of values to the specified capability. | |
GetCapabilityTwainType | Returns the TWAIN type for the specified capability. | |
GetCapabilityType | Use this method to determine the .NET Type DotTwain expects for a specific capability.
| |
GetCapabilityValue(DeviceCapability, Boolean) | Reads a Boolean capability value. | |
GetCapabilityValue(DeviceCapability, RectangleF) | Reads a RectangleF capability value. | |
GetCapabilityValue(DeviceCapability, Int32) | Reads an Int32 capability value. | |
GetCapabilityValue(DeviceCapability, Single) | Reads a Single capability value. | |
GetCapabilityValue(DeviceCapability, String) | Reads a String capability value. | |
GetConditionCode | Returns the condition code from the source manager. | |
GetConditionCode(TwainIdentity) | Returns the condition code from the source device. | |
GetDefaultDevice | Returns the identity of the default system device. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetPendingTransferCount | Use this method to get the number of pages waiting to be acquired, reset the pending count or to end the
current page. | |
GetTwainDevices | Returns an array of TwainIdentity classes; one for each Twain compatible device found on the
system. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
InitiateDataTransfer | Use this method to have DotTwain handle the data acquisition details. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OpenSource | Opens a connection to the CurrentDevice. | |
OpenSource(TwainIdentity) | Opens a connection to the device passed in. | |
OpenSourceManager | Opens a connection to the TWAIN Source Manager. | |
ProcessEvent | This method will process the Message object retrieved from
PreFilterMessage to determine if the message should be handled by the device or passed along the
message loop. | |
ReadTwainContainerData(TwainContainer, TwainMemory) | Returns the value of a memory pointer retrieved from a device. | |
ReadTwainContainerData(TwainContainer, IntPtr) | Returns the value of a memory pointer retrieved from a device. | |
RegisterTwainCallback | Sets up a callback for TWAIN device messages instead of using the traditional message loop. This should only be called when using the TwainController directly; the Device object automatically handles the callback. The callback feature is only supported when using the TWAIN 2.0 Data Source Manager | |
ResetAllCapabilities | Call this method to reset all capabilities supported by the device. | |
ResetCapability | Resets a single capability to its startup value. | |
SendCommand(TwainTriplet, TwainIdentity, ITwainDataStructure) | Send a command to the TWAIN API | |
SendCommand(Int32, Int32, Int32, TwainIdentity, ITwainDataStructure) | Sends a command triplet that may not be contained in the TwainTriplet enumeration.
| |
SetCapabilityArray | Sets an array of values for a specific capability to the device. | |
SetCapabilityValue(DeviceCapability, Boolean) | Sets a capability to a Boolean value. | |
SetCapabilityValue(DeviceCapability, RectangleF) | Set a capability to a RectangleF value. | |
SetCapabilityValue(DeviceCapability, Int32) | Sets a capability to an Int32 value. | |
SetCapabilityValue(DeviceCapability, Single) | Sets a capability to a Single value. | |
SetCapabilityValue(DeviceCapability, String) | Sets a capability to a String value. | |
SetExtendedImageInfoOptions | Sets the extended image information id values that will be retrieved when acquiring data. | |
SetThreadUIControl | Sets the parent control used to invoke events from the TwainController. This method is
automatically called by the Device object when acquiring images. | |
ShowSelectSource | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |