ImageGear Professional DLL v17.1 for Windows Accusoft
LPFNIG_TWAIN_AFTER_TRANSFORM_PAGE
Send Feedback  
ImageGear Professional DLL v17.1 for Windows > API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_TRANSFORM_PAGE

Glossary Item Box

This callback function, if registered, will be called by ImageGear after each page has been acquired using the IG_TWAIN_acquire(), IG_TWAIN_scan_pages(), IG_TWAIN_scan_pages_to_file() and IG_TWAIN_preview() functions.

Declaration:

  Copy Code
typedef LONG (LPACCUAPI LPFNIG_TWAIN_AFTER_TRANSFORM_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_CB_register() function.

Return Value:

Return 1 if you want to continue scanning; return 0 to cancel the scanning process after saving the page just scanned.

©2012. Accusoft Corporation. All Rights Reserved.