(Document/Medical only) Determines the best scanner configuration.
workingFolder
The path to the working folder in which to save the tested images.
flags
Indicates whether to display the manufacturer's user interface. For a list of possible values, refer to the UserInterfaceConstants enumeration Flags that control the display of the user interface and the actions of the method.
bitsPerPixel
The resulting file's pixel depth.
Note that not all bits per pixel are available to all file formats. Use 0 for bitsPerPixel to store the file using the closest BitsPerPixel value supported by that format.
bufferIteration
The number of memory configurations that will be tested. The maximum value for this parameter is 10.
userConfigurations
The configurations to be tested.
A TwainFindFastConfigurationResult which represents the best and fastest configuration for the test TWAIN source.
This method will test scan configurations for the scanner selected using the SelectSource method. Using the fastest scan configuration, scans images as quickly as possible. To test user-defined or custom configurations, pass an array of TwainFastConfiguration objects to the userConfigurations*
The configurations to be tested.
To test the default configurations available for the TWAIN driver, pass null for the userConfigurations*
The configurations to be tested.
If TwainFastUserInterfaceFlags.CheckDefaultBitsPerPixel is set in flags*
Indicates whether to display the manufacturer's user interface. For a list of possible values, refer to the UserInterfaceConstants enumeration Flags that control the display of the user interface and the actions of the method.
If TwainFastUserInterfaceFlags.UseThread is set in flags*
Indicates whether to display the manufacturer's user interface. For a list of possible values, refer to the UserInterfaceConstants enumeration Flags that control the display of the user interface and the actions of the method.
The bitsPerPixel*
The resulting file's pixel depth.
.The buffer iteration value determines the buffer sizes to be tested. The purpose for testing the memory transfer mode with different buffer sizes is to determine the buffer size that will provide the fastest scan configuration. The buffer iteration specifies the number of buffer sizes that will be tested. The buffer size is the size of the transferred data from the TWAIN source.
To stop the scan configuration testing process, set the Stop property to true within the FastConfiguration event. The Stop property must be set to false to continue the scan configuration process.
For more information, refer to Fast TWAIN (Scan Configurations). This function shows some helper message boxes while it is running for guiding the user through the running tests. If you wish to suppress these messages then pass TwainFastUserInterfaceFlags.SuppressMessageBoxes flag and these messages will stop showing up.
Products |
Support |
Feedback: FindFastConfiguration Method - Leadtools.Twain |
Introduction |
Help Version 19.0.2017.3.22
|