#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetZoneLayout(hDoc, nPageIndex, nZoneIndex, pprc, pnRectCount)
Gets user zone shape rectangles.
Handle to the OCR document. This handle is obtained by calling the L_Doc2StartUp function.
Index of the page. This is a zero-based index.
Index of the zone. This is a zero-based index.
Address of an array of RECT structures to be updated.
Address of a variable to be updated with the number of array elements.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Use this function to obtain information about the shape of a specific zone in the user zone list of the specified page.
To use the function properly:
To set zone rectangles call the L_Doc2SetZoneLayout / L_Doc2SetZoneLayoutExt function.
To add a user zone, call the L_Doc2AddZone / L_Doc2AddZoneExt function. To add rectangle(s) to a user zone to make its shape irregular, call the L_Doc2AddZoneRect / L_Doc2AddZoneRectExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2SetZoneLayout