L_Doc2UpdateZone
#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2UpdateZone(hDoc, nPageIndex, nZoneIndex, pZoneData)
L_HDOC2 hDoc; |
/* handle to the OCR document */ |
L_INT nPageIndex; |
/* page index */ |
L_INT nZoneIndex; |
/* zone index */ |
pZONEDATA2 pZoneData; |
/* pointer to a ZONEDATA2 structure */ |
Updates the zone data of a single zone in the zone list.
Parameter |
Description |
hDoc |
Handle to the OCR document. |
nPageIndex |
Index of the page that contains the zone to be updated. This is a zero-based index. |
nZoneIndex |
Index of the zone to be updated. This is a zero-based index. |
pZoneData |
Pointer to the ZONEDATA2 structure that contains information used to update the zone. |
Returns
SUCCESS |
The function was successful. |
< 1 |
An error occurred. Refer to Return Codes. |
Comments
When adding a zone, the application should directly initialize the following members of ZONEDATA2 structure, since these members do not take default values:
uStructSize
rcArea
FillMethod
CharFilter
Type
RecogModule
The Type member of the ZONEDATA2 structure should be one of the following values:
DOC2_ZONE_FLOWTEXT
DOC2_ZONE_TABLE
DOC2_ZONE_GRAPHIC
The index of the first zone in the zone list is zero (0).
To update only the zone area, call the L_Doc2Zone function.
For OCR zones (zones that detected by calling the L_Doc2FindZones function), the following members cannot be changed:
ZONEDATA2.rcArea, ZONEDATA2.Type, ZONEDATA2.pfnCallback.
But, you can update all ZONEDATA2 members for user zones.
Required DLLs and Libraries
LTDOC2 For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application. |
See Also
Example
For an example, refer to L_Doc2GetZone.