#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2GetSelectedZone(hDoc, nPageIndex, pZoneData, uStructSize)
Gets the zone data of the selected zone in the specified page.
Handle to the OCR document.
Index of the page in which to find the zone data for its selected zone. This index is zero-based.
Pointer to a ZONEDATA2 structure to be updated.
Size in bytes, of the structure pointed to by pZoneData, use sizeof(ZONEDATA2) to calculate this value.
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To select a zone, call the L_Doc2SelectZone / L_Doc2SelectZoneExt function or the L_Doc2SelectZoneByPoint/ L_Doc2SelectZoneByPointExt function.
To get zone data of a specific zone, call the L_Doc2GetZone / L_Doc2GetZoneExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2Zone.