Handles each image provided by the calling function LTwain::Acquire.
#include "ltwrappr.h"
virtual L_INT LTwain::BitmapCallBack (pBitmap)
Pointer to the bitmap handle that references the bitmap acquired from the TWAIN source. It is the same bitmap handle that you specify when calling the LTwain::Acquire function.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
This callback function will be enabled only if you enabled the callback functions by calling LBase::EnableCallBack(TRUE). You must handle the image during this callback.
To prevent memory leaks, the user should free the bitmap within the callback function.
The LTwain::GetExtendedImageInfo function can only be called within [LTwain:BitmapCallBack.
For an example, refer to LTwain::Acquire.