The TWainParams type exposes the following methods.

Methods

 Public

 Protected
 Instance

 Static
 Declared

 Inherited
 XNA Framework Only

 .NET Compact Framework Only

 MemberDescription
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.)

See Also