LTwain::BitmapCallBack

Summary

Handles each image provided by the calling function LTwain::Acquire.

Syntax

#include "ltwrappr.h"

virtual L_INT LTwain::BitmapCallBack (pBitmap)

Parameters

pBITMAPHANDLE 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.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LTwain::Acquire.

Help Version 22.0.2022.12.7
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS TWAIN C++ Class Library Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.