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

AcquirePage Event






Occurs for each page acquired from the currently selected TWAIN source using the Acquire method.
Syntax
public event EventHandler<TwainAcquirePageEventArgs> AcquirePage
'Declaration
 
Public Event AcquirePage As EventHandler(Of TwainAcquirePageEventArgs)
'Usage
 
Dim instance As TwainSession
Dim handler As EventHandler(Of TwainAcquirePageEventArgs)
 
AddHandler instance.AcquirePage, handler
public event EventHandler<TwainAcquirePageEventArgs> AcquirePage
add_AcquirePage(function(sender, e))
remove_AcquirePage(function(sender, e))

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.
Remarks
If the user acquired several pages at the same time, a separate event occurs for each page.
The TwainExtraImageInformation.GetInformation method can only be called within this event.
For more information, refer to How to Acquire from the Twain Source.
Example
Refer to Acquire.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

TwainSession Class
TwainSession Members
Startup Method
Shutdown Method
SelectSource Method
Acquire Method

 

 


Products | Support | Contact Us | Copyright Notices

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