L_OcrPageBitmapChangedCallback

#include "ltocr.h"

L_VOID pEXT_CALLBACK YourFunction(page, commands, userData)

L_OcrPage page; OCR page handle
L_OcrAutoPreprocessPageCommands commands; AutoPreprocess operations applied to the OCR page
L_VOID* userData; pointer to additional parameters

This callback is invoked when any auto preprocessing command gets called on the OCR page to notify the user that the page bitmap has changed and give him the chance to get the new updated page bitmap. The address of this callback is passed as an argument to the L_OcrPage_SetBitmapChangedCallback function.

Parameter Description
page OCR page handle that fired this callback.
commands The Auto preprocess operations applied on the page bitmap, for list of possible values refer to L_OcrAutoPreprocessPageCommands.
userData A void pointer that you can use to access a variable or structure containing data that your callback function needs. This gives you a way to receive data indirectly from the function that uses this callback function. (This is the same pointer that you pass in the userData parameter of the L_OcrPage_SetBitmapChangedCallback function.)
Keep in mind that this is a void pointer, which must be cast to the appropriate data type within your callback function.

Comments

This callback is invoked when any auto preprocessing command gets called on the OCR page to notify the user that the page bitmap has changed and give him the chance to get the new updated page bitmap.

To activate this callback function, call the L_OcrPage_SetBitmapChangedCallback function.

Required DLLs and Libraries

LTOCR
For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.
See Also
Functions: L_OcrPage_SetBitmapChangedCallback
Topics: Recognizing OCR Pages

Example

For an example, refer to L_OcrPage_SetBitmapChangedCallback.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Advantage OCR C API Help