L_DocUpdateZone

#include "ltdoc.h"

L_INT EXT_FUNCTION L_DocUpdateZone(hDoc, nPageIndex, nZoneIndex, pZoneData);

L_HDOC hDoc;

/* handle to the OCR document */

L_INT nPageIndex;

/* page index */

L_INT nZoneIndex;

/* zone index */

pZONEDATA pZoneData;

/* pointer to a ZONEDATA structure */

Updates the zone data of a single zone in the zone list.

Parameter

Description

hDoc

Handle to the OCR document.

nPageIndex

Specifies the index of the page that contains the zone to be updated. This is a zero-based index.

nZoneIndex

Specifies the index of the zone to be updated. This is a zero-based index.

pZoneData

Pointer to the ZONEDATA 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 ZONEDATA structure, since these members will not take their default values:

uStructSize
rcArea
FillMethod
CharFilter
Type
RecogModule

The application should not modify the ID zone member, except for OMR zones using the "filled-in-error" facility.

The Type member of the ZONEDATA structure should be one of the following values:

ZONE_FLOWTEXT

ZONE_TABLE

ZONE_GRAPHIC

The index of the first zone in the zone list is zero (0).

To update only the zone area, call L_DocZone.

Required DLLs and Libraries

LTDOC

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

Functions:

L_DocAddZone, L_DocGetZoneCount, L_DocGetZone, L_DocRemoveZone, L_DocImportZones, L_DocExportZones, L_DocFindZones, L_DocSetZoneOptions, L_DocGetZoneOptions

Topics:

OCR Functions: Zones

 

Working with Zones

Example

For an example, refer to L_DocGetZone.