In the document imaging world, the common task is to scan many pages into one file. DotTwain, with DotImage can easily be used to complete this task. Two of the most popular multi-page TIFF image format and PDF format, this article will focus on these.
To start off, so take a look at how to scan a single page. It is important to realize that the whole acquisition process ( 'the acquisition' refers to scan web pages and transferred to the application process) is event-driven. This means that as long as they took place during this period, including saving the image, we must deal with the event handler. In the DotTwain, the acquisition is subject to the acquisition of a class instance. For any one application, there should be precise a takeover target. This is because the acquisition of the object to connect to the TWAIN interface, and TWAIN does not allow multiple connections. Following the acquisition of events we are interested in:
AcquireCanceled: Raised, if the user cancels the acquisition process.
AcquireFinished: scanner, does lead to the last page of the scan is complete.
ImageAcquired: In each scanner finishes scanning a page.
In order to address each of these events, we must in order to create the event handler. All of our code, in addition to pull the acquisition will begin to live in one of these events. To start off, we must create an instance of the class acquired:
Related knowledge of photo editing software: