ImageGear for C and C++ on Windows v19.1 - Updated
LPFNIG_TWAIN_AFTER_TRANSFORM_PAGE
API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_TRANSFORM_PAGE

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:

Name Type Description
nPageNum LONG The number of the page just scanned; the first page is 1.
hIGear HIGEAR HIGEAR handle to the image just scanned.
nPendCount LONG 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 LPCSTR 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 LPVOID 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.