Leadtools TWAIN (Leadtools.Twain assembly)
LEAD Technologies, Inc

TwainUserInterfaceFlags Enumeration






Indicates whether to display the manufacturer's user interface.
Syntax
[FlagsAttribute()]
public enum TwainUserInterfaceFlags : System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
'Declaration
 
<FlagsAttribute()>
Public Enum TwainUserInterfaceFlags 
   Inherits System.Enum
   Implements System.IComparableSystem.IConvertibleSystem.IFormattable 
'Usage
 
Dim instance As TwainUserInterfaceFlags
[FlagsAttribute()]
public enum TwainUserInterfaceFlags : System.IComparableSystem.IConvertibleSystem.IFormattable  
Leadtools.Twain.TwainUserInterfaceFlags = function() { };
Leadtools.Twain.TwainUserInterfaceFlags.prototype = {
LeadtoolsMemberMarker(replace me) };
[FlagsAttribute()]
public enum class TwainUserInterfaceFlags : public System.Enum, System.IComparableSystem.IConvertibleSystem.IFormattable  
Members
MemberDescription
ImageSizeUndefinedCalculate the acquired image size after the image is acquired. This flag is used only with memory transfer mode.

Use ImageSizeUndefined flag only when memory transfer mode is used. So, to use this flag, you should set TwainCapabilityType.ImageTransferMechanism capability to TwainTransferMechanism.Memory and then set TwainCapabilityType.ImageUndefinedImageSize capability to TRUE before calling TwainSession.Acquire(), otherwise, the TwainSession.Acquire() will return an error.

KeepOpenKeep the TWAIN data source open after scanning.

The TwainUserInterfaceFlags.KeepOpen flag works only in the following cases:

  • Passed along with TwainUserInterfaceFlags.Show flag to make TWAIN user-interface appears as modeless dialog. The TWAIN data source remains open after scanning until the user closes it.
  • Passed along with TwainUserInterfaceFlags.Show and TwainUserInterfaceFlags.Modal flags to make the TWAIN user-interface appears as modal dialog. The TWAIN data source remains open after scanning until the user closes it.

MemoryCheckImageInfoChecks image information while scanning multi pages with different dimensions. This flag is used only with memory transfer mode.

Use MemoryCheckImageInfo flag only when memory transfer mode is used. Also, this flag will not affect native and file transfer modes.

When scanning multi pages or multi areas with memory transfer mode, you may need to use (MemoryCheckImageInfo); this flag will let the TWAIN DLL to check the image information for each page or area before start pending the image data to application.

Some drivers will not work with this flag like TWAIN Virtual Driver; in this case, you shouldn't pass this flag.

The usage of the flag does not follow the TWAIN specification, but is included as work around for TWAIN drivers that scan multiple pages with different image dimensions. Usage of this flag should be limited only to these special and unusual cases.

ModalShows the manufacturer's user interface as a modal dialog. Works only if the Show is set.
NoneDefault, no user interface is shown. Not all TWAIN Data Sources support this feature.
ShowShows the manufacturer's user interface as modeless.
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Twain.TwainUserInterfaceFlags

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

Leadtools.Twain Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.