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

TwainSession Class

Properties  Methods  Events


The following tables list the members exposed by TwainSession.

Public Constructors
 NameDescription
Public ConstructorTwainSession ConstructorConstructs a new TwainSession object with default values.  
Top
Public Properties
 NameDescription
Public PropertyAcquirePageOptionsGets or sets the paper size and paper orientation values to use when transferring images from the current TWAIN source.  
Public PropertyDuplexScanningModeGets the duplex mode value.  
Public PropertyEnableAcquireMultiPageEvent(Document/Medical only) Enables or disables the generation of the Leadtools.Twain.TwainSession.AcquireMultiPage event.  
Public PropertyEnableDuplexScanningEnables or disables the duplex mode.  
Public PropertyEnableFastConfigurationEvent(Document/Medical only) Enables or disables the generation of the Leadtools.Twain.TwainSession.FastConfiguration event.  
Public PropertyEnableGetDeviceEventEnables or disables firing Leadtools.Twain.TwainSession.GetDeviceEvent event  
Public PropertyEnableSetPropertyEventEnable or disable firing property event when calling calling set Properties property.  
Public PropertyEnableShowUserInterfaceOnlyGets or sets flag that indicates whether to display the Twain user interface with or without the Scan button, if supported.  
Public PropertyImageBitsPerPixelGets or sets the bits per pixel value used to transfer images from the current TWAIN source.  
Public PropertyImageEffectsGets or sets the brightness, highlight and contrast values to use when transferring images from the current TWAIN source.  
Public PropertyImageFrameGets or sets the image frame used when transferring images from the current TWAIN source.  
Public PropertyImageUnitGets or sets the image unit value used to transfer images from the current TWAIN source.  
Public PropertyMaximumTransferCountGets or sets the maximum number of images that can be transferred from the current TWAIN source.  
Public PropertyPropertiesGets or Sets the current data source properties.  
Public PropertyResolutionGets or sets the horizontal and vertical resolution used to transfer images from the current TWAIN source.  
Public PropertyTransferOptionsGets and sets the options used for transferring data from the current TWAIN source.  
Top
Public Methods
 NameDescription
Public MethodAcquireAcquires one or more images from a TWAIN source.  
Public MethodAcquireFast(Document/Medical only) Acquires one or more images from a TWAIN source and stores the images in the specified file(s).  
Public MethodAcquireToImageAcquires one image from a TWAIN source.  
Public MethodFindConfiguration(Document/Medical only) Gets all available configurations for the current session.  
Public MethodFindFastConfiguration(Document/Medical only) Determines the best scanner configuration.  
Public MethodGetCapabilityGets the TwainCapability value at the specified index from the array of capabilities supported by the selected TWAIN source.  
Public MethodGetDeviceEventCapabilityGets device events capability values for current TWAIN session.  
Public MethodGetDeviceEventDataGets information for specific device event  
Public MethodGetJpegCompressionGets the current or default JPEG compression settings for the TWAIN session.  
Public Methodstatic (Shared in Visual Basic)IsAvailableDetermines whether a TWAIN source is installed.  
Public MethodIsTransferModeAvailableCheck if the specific transfer mode is supported in the current Twain source.  
Public MethodLoadTemplateFileLoads the TWAIN capability values stored in the specified template file and sets the selected TWAIN source using these values.  
Public MethodModifyRgbResponseSets the RGB elements to be used when transferring data from the current TWAIN source.  
Public MethodQueryCapabilityGets all the supported values of the requested capability.  
Public MethodQueryFileSystemQuery Twain file system.  
Public MethodQuerySourceInformationGets information about the available TWAIN Data Sources.  
Public MethodQuerySupportedCapabilitiesGets an array of Twain Capabilities supported in the current session.
 
Public Methodraise_AcquireMultiPage(Document/Medical only) Occurs during multipage image scanning  
Public Methodraise_AcquirePageOccurs after an image is acquired.  
Public Methodraise_FastConfiguration(Document/Medical only) Occurs during fast twain configuration testing.  
Public Methodraise_GetDeviceEventOccurs after a device event is received.  
Public Methodraise_LoadTemplateOccurs loading of a TWAIN Template using LoadTemplateFile  
Public Methodraise_SaveTemplateOccurs saving of a TWAIN Template SaveTemplateFile.  
Public Methodraise_SetPropertyOccurs when setting TWAIN capability using Properties  
Public MethodResetDeviceEventCapabilityResets CAP_DEVICEEVENT capability to defaults values  
Public MethodSaveCustomDSDataSaves the custom data source data to a file  
Public MethodSaveTemplateFileEnumerates all supported capabilities, and the current values, for the currently selected TWAIN source and saves them to the specified template file.  
Public MethodSelectedSourceNameGets the name of the selected TWAIN source. This name is provided by the manufacturer.  
Public MethodSelectSourceDisplays the TWAIN dialog box to be used to select a TWAIN source for acquiring images.  
Public MethodSetCapabilitySets the value of the specified capability.  
Public MethodSetDeviceEventCapabilitySets CAP_DEVICEEVENT capability values  
Public MethodSetJpegCompressionSets the JPEG compression options for the current TWAIN session. This method lets the user set JPEG compression options for the current TWAIN session or reset the default JPEG compression options for the current TWAIN session, depending on the flag passed to the flag parameter.  
Public Methodstatic (Shared in Visual Basic)SetVersionSets the desired Twain version to work with.  
Public MethodShowProgressIndicatorEnables or disables the display of a progress indicator during the acquisition of images from the current TWAIN source.  
Public MethodShowTemplateDialogDisplays the TWAIN source manufacturer's template dialog, without actually acquiring an image.  
Public MethodShutdownEnds a TWAIN session.  
Public MethodStartupInitializes the TWAIN session.  
Public MethodStartup2Initializes the TWAIN session.  
Public MethodStopFeederStop acquiring images only from the feeder of the TWAIN source.  
Public MethodUpdateCustomDSDataUpdate the custom data source  
Public MethodUpdateExtraImageInformationGets the extended image information.  
Top
Protected Methods
 NameDescription
Protected Methodraise__acquireMultiPage(Document/Medical only) Occurs during multipage image scanning  
Protected Methodraise__acquirePageOccurs after an image is acquired.  
Protected Methodraise__fastConfiguration(Document/Medical only) Occurs during fast twain configuration testing.  
Protected Methodraise__getDeviceEventOccurs after a device event is received.  
Protected Methodraise__loadTemplateOccurs loading of a TWAIN Template using LoadTemplateFile  
Protected Methodraise__saveTemplateOccurs saving of a TWAIN Template SaveTemplateFile.  
Protected Methodraise__setPropertyOccurs when setting TWAIN capability using Properties  
Top
Public Events
 NameDescription
Public EventAcquireMultiPage(Document/Medical only) Occurs twice for each scanned page, if the EnableAcquireMultiPageEvent property is set to true.  
Public EventAcquirePageOccurs for each page acquired from the currently selected TWAIN source using the Acquire method.  
Public EventFastConfiguration(Document/Medical only) This event is fired for each scan configuration tested, if the value of the EnableFastConfigurationEvent property is set to true.  
Public EventGetDeviceEventOccurs for for each device event received from the TWAIN source to the application  
Public EventLoadTemplateOccurs when loading TWAIN capabilities from the currently selected TWAIN source to a template file by calling the LoadTemplateFile method.  
Public EventSaveTemplateOccurs when saving TWAIN capabilities from the currently selected TWAIN source to a template file by calling the SaveTemplateFile method.  
Public EventSetPropertyOccurs when setting TWAIN capabilities to currently selected TWAIN source by calling the Properties property.  
Top
See Also

Reference

TwainSession Class
Leadtools.Twain Namespace

 

 


Products | Support | Contact Us | Copyright Notices

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