←Select platform

RequiredTime Property

Summary
Gets or sets an integer that represents the amount of time required to scan the pages when testing the scan configuration.

Syntax
C#
C++/CLI
Python
public int RequiredTime { get; set; } 
public: 
property int RequiredTime { 
   int get(); 
   void set (    int ); 
} 
RequiredTime # get and set (TwainFastConfiguration) 

Property Value

An integer that represents the amount of time required to scan the pages when testing the scan configuration.

Remarks

The number of pages depends on how many pages the user loads in the scanner when testing a scan configuration. The same pages should be used for each test. For more information, refer to Fast TWAIN (Scan Configurations).

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void FindConfigurationExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   try 
   { 
      IList<TwainFastConfiguration> twFastConfigs = session.FindConfiguration(1, TwainTransferMechanism.Memory, 5); 
 
      MessageBox.Show("GetScanConfigs method was successful."); 
      string msg; 
 
      msg = String.Format("Scan Configuration count = {0}\n", twFastConfigs.Count); 
      MessageBox.Show(msg); 
 
      msg = String.Format("Transfer Mode = {0}\nFile Format = {1}\nBuffer Size = {2}\nRequired Time = {3}\n", 
         twFastConfigs[0].TransferMechanism, 
         twFastConfigs[0].ImageFormat, 
         twFastConfigs[0].BufferSize, 
         twFastConfigs[0].RequiredTime); 
      MessageBox.Show(msg, "Scan Configurations..."); 
   } 
   catch (Exception ex) 
   { 
      MessageBox.Show(ex.Message, "Error!!!"); 
   } 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 22.0.2023.3.31
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.