Leadtools.Twain Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.8.31
TwainSession Class Members
See Also  Properties  Methods  Events
Leadtools.Twain Namespace : TwainSession Class


The following tables list the members exposed by TwainSession.

Public Constructors

 NameDescription
Public ConstructorTwainSession Constructor Constructs a new TwainSession object with default values.  
Top

Public Properties

 NameDescription
Public PropertyAcquirePageOptions Gets or sets the paper size and paper orinetation values to use when transferring images from the current TWAIN source.  
Public PropertyDuplexScanningMode (Read only) Gets the duplex mode value.  
Public PropertyEnableAcquireMultiPageEvent (Document/Medical only) Enables or disables the generation of the AcquireMultiPage event.  
Public PropertyEnableDuplexScanning Enables or disables the duplex mode.  
Public PropertyEnableFastConfigurationEvent (Document/Medical only) Enables or disables the generation of the FastConfiguration event.  
Public PropertyEnableGetDeviceEvent Enables or disables firing GetDeviceEvent event  
Public PropertyEnableSetPropertyEvent Enable or disable firing property event when calling calling set Properties property.  
Public PropertyEnableShowUserInterfaceOnly Gets or sets flag that indicates whether to display the Twain user interface with or without the Scan button, if supported.  
Public PropertyImageBitsPerPixel Gets or sets the bits per pixel value used to transfer images from the current TWAIN source.  
Public PropertyImageEffects Gets or sets the brightness, highlight and contrast values to use when transferring images from the current TWAIN source.  
Public PropertyImageFrame Gets or sets the image frame used when transferring images from the current TWAIN source.  
Public PropertyImageUnit Gets or sets the image unit value used to transfer images from the current TWAIN source.  
Public PropertyMaximumTransferCount Gets or sets the maximum number of images that can be transferred from the current TWAIN source.  
Public PropertyProperties Gets or Sets the current data source properties.  
Public PropertyResolution Gets or sets the horizontal and vertical resolution used to transfer images from the current TWAIN source.  
Public PropertyTransferOptions Gets and sets the options used for transferring data from the current TWAIN source.  
Top

Public Methods

 NameDescription
Public MethodAcquire Acquires 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 MethodAcquireToImage Acquires one or more images 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 MethodGetCapability Gets the TwainCapability value at the specified index from the array of capabilities supported by the selected TWAIN source.  
Public MethodGetDeviceEventCapability Gets device events capability values for current TWAIN session.  
Public MethodGetDeviceEventData Gets information for specific device event  
Public MethodGetJpegCompression Gets the current or default JPEG compression settings for the TWAIN session.  
Public Methodstatic (Shared in Visual Basic)IsAvailable Determines whether a TWAIN source is installed.  
Public MethodIsTransferModeAvailable Check if the specific transfer mode is supported in the current Twain source.  
Public MethodLoadTemplateFile Loads the TWAIN capability values stored in the specified template file and sets the selected TWAIN source using these values.  
Public MethodModifyRgbResponse Sets the RGB elements to be used when transferring data from the current TWAIN source.  
Public MethodQueryCapability Gets all the supported values of the requested capability.  
Public MethodQueryFileSystem Query Twain file system.  
Public MethodQuerySourceInformation Gets information about the available TWAIN Data Sources.  
Public MethodQuerySupportedCapabilities Gets an array of Twain Capabilities supported in the current session.
 
Public Methodraise_AcquireMultiPage (Document/Medical only) Occurs during multipage image scanning  
Public Methodraise_AcquirePage Occurs after an image is acquired.  
Public Methodraise_FastConfiguration (Document/Medical only) Occurs during fast twain configuration testing.  
Public Methodraise_GetDeviceEvent Occurs after a device event is received.  
Public Methodraise_LoadTemplate Occurs loading of a TWAIN Template using LoadTemplateFile  
Public Methodraise_SaveTemplate Occurs saving of a TWAIN Template SaveTemplateFile.  
Public Methodraise_SetProperty Occurs when setting TWAIN capability using Properties  
Public MethodResetDeviceEventCapability Resets CAP_DEVICEEVENT capability to defaults values  
Public MethodSaveTemplateFile Enumerates all supported capabilities, and the current values, for the currently selected TWAIN source and saves them to the specified template file.  
Public MethodSelectedSourceName Gets the name of the selected TWAIN source. This name is provided by the manufacturer.  
Public MethodSelectSource Displays the TWAIN dialog box to be used to select a TWAIN source for acquiring images.  
Public MethodSetCapability Sets the value of the specified capability.  
Public MethodSetDeviceEventCapability Sets CAP_DEVICEEVENT capability values  
Public MethodSetJpegCompression Sets 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 MethodShowProgressIndicator Enables or disables the display of a progress indicator during the acquisition of images from the current TWAIN source.  
Public MethodShowTemplateDialog Displays the TWAIN source manufacturer's template dialog, without actually acquiring an image.  
Public MethodShutdown Ends a TWAIN session.  
Public MethodStartup Initializes the TWAIN session.  
Public MethodStopFeeder Stop acquiring images only from the feeder of the TWAIN source.  
Public MethodUpdateExtraImageInformation Gets the extended image information.  
Top

Protected Methods

 NameDescription
Protected Methodraise__acquireMultiPage (Document/Medical only) Occurs during multipage image scanning  
Protected Methodraise__acquirePage Occurs after an image is acquired.  
Protected Methodraise__fastConfiguration (Document/Medical only) Occurs during fast twain configuration testing.  
Protected Methodraise__getDeviceEvent Occurs after a device event is received.  
Protected Methodraise__loadTemplate Occurs loading of a TWAIN Template using LoadTemplateFile  
Protected Methodraise__saveTemplate Occurs saving of a TWAIN Template SaveTemplateFile.  
Protected Methodraise__setProperty Occurs 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 EventAcquirePage Occurs 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 EventGetDeviceEvent Occurs for for each device event received from the TWAIN source to the application  
Public EventLoadTemplate Occurs when loading TWAIN capabilities from the currently selected TWAIN source to a template file by calling the LoadTemplateFile method.  
Public EventSaveTemplate Occurs when saving TWAIN capabilities from the currently selected TWAIN source to a template file by calling the SaveTemplateFile method.  
Public EventSetProperty Occurs when setting TWAIN capabilities to currently selected TWAIN source by calling the Properties property.  
Top

See Also