ImageGear Professional v18.2 > API Reference Guide > TWAIN Component API Reference > TWAIN Component Callback Functions Reference > LPFNIG_TWAIN_AFTER_PAGE |
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.
Copy Code
|
|
---|---|
typedef LONG (LPACCUAPI LPFNIG_TWAIN_AFTER_PAGE)( LONG nPageNum, HIGEAR hIGear, LONG nPendCount, LPCSTR lpszFileName, LPVOID lpData ); |
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_scan_pages() or IG_TWAIN_preview() function. |
Return 1 if you want to continue scanning; return 0 to cancel the scanning process after saving the page just scanned.
Indexed RGB – 1, 4, 8 bpp;
RGB – 24 bpp;
CMYK – 32 bpp;
Gray – 12, 16 bpp.