←Select platform

TwainScanningService Class Members

Summary

The following tables list the members exposed by TwainScanningService.

Public Constructors

Name Description
Public Constructor TwainScanningService Initializes a new instance of TwainScanningService with the specified window handle IntPtr owner .

Public Methods

Name Description
Public Method AbortAcquire Aborts acquiring images.
Public Method Acquire Acquires images from the selected source.
Public Method AddPage Adds a page to the TwainScanningService's cache without scanning from the scanner.
Public Method CommandCallBack Callback to run custom user commands.
Public Method DeletePage Deletes the specified page.
Public Method GetCapability Gets the TwainCapability value.
Public Method GetImage Gets the specified image.
Public Method GetPage Gets a specific image page.
Public Method GetSession Gets the selected TwainSession handle.
Public Method GetStatus Gets the status of the service.
Public Method Init Initializes the TWAIN service.
Public Method IsAvailable Determines whether a TWAIN source is installed.
Public Method Preview Gets the preview for the command.
Public Method QuerySourceInformation Gets information about the available TWAIN Data Sources.
Public Method Run Runs custom user commands.
Public Method SelectSource Selects a source for acquiring images.
Public Method SetCapabilityValue Sets the value of the specified capability.
Public Method SetImage Sets the specified image page.
Public Method SetVersion Sets the desired TWAIN version with which to work.
Public Method Start Starts the scanning session.
Public Method Stop Stops the scanning session.

Protected Methods

Name Description
Protected Method CreateRasterCodecs Creates a RasterCodecs intance for saving and loading the scanned images.
Protected Method GenerateId Generates a new session Id.

Public Properties

Name Description
Public Property Owner Gets or sets the owner window handle. This is an optional property.
Public Property RunCommandCallBack Gets os sets the user command callback.

Public Events

Name Description
Public Event BeginImageProcessing Occurs at the beginning of Run(String,Int32,Int32,String,String,Object) and Preview.
Public Event ClientStarted Occurs when a client session starts.
Public Event ClientStopped Occurs when a client session is stopped.
Public Event EndImageProcessing Occurs at the end of Run(String,Int32,Int32,String,String,Object) and Preview.
Public Event ImageProcessing Occurs in Run(String,Int32,Int32,String,String,Object) and Preview methods to apply the image processing command on the specified image.

See Also

TwainScanningService Class

Leadtools.Services.Twain Namespace

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

Leadtools.Services.Twain Assembly

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