This callback function, if registered, will be called by ImageGear after each page has been acquired using the IG_TWAIN_scan_pages() and IG_TWAIN_preview() functions.
Declaration:
Copy Code | |
---|---|
typedef LONG (LPACCUAPI LPFNIG_TWAIN_AFTER_PAGE)( LONG nPageNum, HIGEAR hIGear, LONG nPendCount, LPCSTR lpszFileName, LPVOID lpData); |
Arguments:
nPageNum | The number of the page just scanned; the first page is 1. |
hIGear | HIGEAR handle to the image just scanned. |
nPendCount | The number of pending pages left to be scanned. In the TWAIN lexicon, "pending" refers to how many pages are left in the ADF or in the digital camera. TWAIN requires that the Data Source let it know how many pages are "pending". |
lpszFileName | If you are using Native or Buffered Memory Transfer Syntax, this will be the filename given to the page that was just scanned. If you are using Disk File Transfer, this was the name given to the page that was just scanned. |
lpData | A far pointer to private data, as specified in your call to IG_TWAIN_scan_pages() or IG_TWAIN_preview() function. |
Return Value:
Return 1 if you want to continue scanning; return 0 to cancel the scanning process after saving the page just scanned.
Supported Raster Image Formats:
Indexed RGB – 1, 4, 8 bpp;
RGB – 24 bpp;
CMYK – 32 bpp;
Gray – 12, 16 bpp.