ImageGear for Silverlight
Acquire(Int32,ImGearCaption) Method
See Also  Send Feedback
ImageGear20.TWAIN Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class > Acquire Method : Acquire(Int32,ImGearCaption) Method




pageCount
Count of pages to scan. -1 scans all available pages.
caption
A caption object that specifies information about text that will be rendered on the acquired image.

Glossary Item Box

Scan multiple pages from a scanner equipped with an AutomaticDocumentFeeder (ADF). Each page is saved to an ImageGear.Core.ImGearPage available in an AfterPage event.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

pageCount
Count of pages to scan. -1 scans all available pages.
caption
A caption object that specifies information about text that will be rendered on the acquired image.

Exceptions

ExceptionDescription
ImageGear.Core.ImGearExceptionThrown if:
  • this method is called while a connection with a data source is not open.

Remarks

Prior to calling this method:

  • Call OpenSource to select the desired Data Source.
  • Call SetCapability to set desired capability values.
  • Set up event handlers for the AfterPage event.

In the AfterPage event, the scanned page is made available as an ImageGear.Core.ImGearPage class object.

Note: This method can also be used to acquire a single page document from a TWAIN device without an ADF. Or it can be used to acquire a multipage document from a TWAIN device whose UI permits scanning multiple images.

See Also

©2013. Accusoft Corporation. All Rights Reserved.