Leadtools TWAIN (Leadtools.Twain assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
AcquirePage Event
See Also 
Leadtools.Twain Namespace > TwainSession Class : AcquirePage Event



Occurs for each page acquired from the currently selected TWAIN source using the Leadtools.Twain.TwainSession.Acquire method.

Syntax

Visual Basic (Declaration) 
Public Event AcquirePage As EventHandler(Of TwainAcquirePageEventArgs)
Visual Basic (Usage)Copy Code
Dim instance As TwainSession
Dim handler As EventHandler(Of TwainAcquirePageEventArgs)
 
AddHandler instance.AcquirePage, handler
C# 
public event EventHandler<TwainAcquirePageEventArgs> AcquirePage
C++/CLI 
public:
event EventHandler<TwainAcquirePageEventArgs^>^ AcquirePage

Event Data

The event handler receives an argument of type TwainAcquirePageEventArgs containing data related to this event. The following TwainAcquirePageEventArgs properties provide information specific to this event.

PropertyDescription
Cancel Set to true to abort the acquire operation.
Image Gets the IRasterImage which holds the image data acquired from the TWAIN Data Source.

Example

Remarks

If the user acquired several pages at the same time, a separate event occurs for each page.
The Leadtools.Twain.TwainExtraImageInformation.GetInformation method can only be called within this event.
For more information, refer to How to Acquire from the Twain Source.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also