TwainUserInterfaceFlags Enumeration

Summary
Indicates whether to display the manufacturer's user interface.
Syntax
C#
VB
C++
[FlagsAttribute()] 
[DataContractAttribute()] 
public enum TwainUserInterfaceFlags 
<DataContractAttribute()> 
<FlagsAttribute()> 
Public Enum TwainUserInterfaceFlags  
[DataContractAttribute()] 
[FlagsAttribute()] 
public enum class TwainUserInterfaceFlags   
Members
ValueMemberDescription
0x00000000None Default, no user interface is shown. Not all TWAIN Data Sources support this feature.
0x00000001Show Shows the manufacturer's user interface as modeless.
0x00000002Modal Shows the manufacturer's user interface as a modal dialog. Works only if the Show is set.
0x00000020KeepOpen Keep 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.
0x00000040MemoryCheckImageInfo Checks 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 multiple pages or multiple 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 beginning to pend the image data to the application. Some drivers will not work with this flag (for example, the TWAIN Virtual Driver). In such cases do not pass this flag. The usage of the flag does not follow the TWAIN specification, but is included as a 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.
0x00000080ImageSizeUndefined Calculate 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.
Requirements

Target Platforms

See Also

Reference

Leadtools.Twain Namespace

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

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.