#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2LockPage(hDoc, nPageIndex)
Locks a specific page.
Handle to the OCR document.
Index of the page to be locked. This index is zero-based.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Locks the specified page so you can update its bitmap using the L_Doc2UpdatePage / L_Doc2UpdatePageExt function.
After updating the bitmap, you should unlock the page by calling the L_Doc2UnlockPage / L_Doc2UnlockPageExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2UpdatePage.