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

This callback, if registered, will be called by ImageGear before any of the pages of a document have been retrieved, processed and/or saved.

Declaration:

 
Copy Code
typedef LONG (LPACCUAPI LPFNIG_TWAIN_BEFORE_DOC)(
        LPVOID lpData
);

Arguments:

Name Type Description
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 scanning.

Supported Raster Image Formats:

This function does not process image pixels.