The TwainParams type exposes the following methods.
Methods
| Member | Description | |
|---|---|---|
| CopyParametersFromScanner()()()() | Fills TwainParams property with scanner parameters. Use this method to update parameters with scanner values. | |
| CopyParametersToScanner()()()() | CopyParametersToScanner() method probes if current parameters are valid. For example, if application assignes a combination of PixelType and YResolution unsupported by scanner, the method restores the PixelType and YResolution value to one supported by scanner. | |
| CopyTo(TwainParams) |
Copies all parameters to destination.
| |
| Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| FreeResources()()()() | IEvolution keeps the scanner driver open to improve performance. Call FreeResources to close and free the scanner driver after a call to Acquire method: this degrade performance but can improve stability. Applications should not call FreeResources because it is executed when the application exits. | |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetSystemDefaultSource()()()() |
GetSystemDefaultSource returns system default Twain source.
| |
| GetType()()()() | Gets the Type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| SelectSourceByName(String) |
Select source by name.
| |
| SetToDefaultValues()()()() |
Restores default parameters
| |
| SourceSettingsLoad(Stream) | Loads source settings from file (previously saved using SourceSettingsSave). Source settings are filled when IETwainParams.ShowSettingsOnly is true and you call IEImage.AcquireFromTwain(). | |
| SourceSettingsLoad(String) | Loads source settings from file (previously saved using SourceSettingsSave). Source settings are filled when IETwainParams.ShowSettingsOnly is true and you call IEImage.AcquireFromTwain(). | |
| SourceSettingsSave(Stream) | Saves source settings to stream (you can re-load them using SourceSettingsLoad). Source settings are filled when IETwainParams.ShowSettingsOnly is true and you call IEImage.AcquireFromTwain(). | |
| SourceSettingsSave(String) | Saves source settings to file (you can re-load them using SourceSettingsLoad). Source settings are filled when IETwainParams.ShowSettingsOnly is true and you call IEImage.AcquireFromTwain(). | |
| ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |