#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2LockPageExt(hDoc, nDocId, nPageIndex)
Locks a specific page.
Handle to the OCR document.
Document ID created by calling L_Doc2CreateDocument.
Zero-based index of the page to be locked.
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 L_Doc2UpdatePage / L_Doc2UpdatePageExt.
After updating the bitmap, unlock the page by calling L_Doc2UnlockPage / L_Doc2UnlockPageExt.
Required DLLs and Libraries
For an example, refer to L_Doc2UpdatePageExt.