#include "ltdoc2.h"
L_LTDOC2_API L_INT L_Doc2GetZoneLayoutExt(hDoc, nDocId, nPageIndex, nZoneIndex, pprc, pnRectCount)
Gets the zone layout.
Handle to the OCR document. This handle is obtained by calling the L_Doc2StartUp function.
Document ID created by calling L_Doc2CreateDocument.
Zero-based index of the page.
Zero-based index of the zone.
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 L_Doc2GetZoneLayoutExt 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_Doc2SetZoneLayoutExt