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 |
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.
Property | Description |
---|---|
Cancel | Set to true to abort the acquire operation. |
Image | Gets the IRasterImage which holds the image data acquired from the TWAIN Data Source. |
Refer to Leadtools.Twain.TwainSession.Acquire.
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.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7