L_LTDOC2_API L_INT L_Doc2ExcludeZoneRectExt(hDoc, nDocId, nPageIndex, nZoneIndex, prc)
Excludes a rectangle from a user zone.
Handle to the OCR document. This handle is obtained by calling the L_Doc2StartUp function.
Document ID created by calling L_Doc2CreateDocument.
Zero-based page index of the page.
Zero-based Zone index of the zone.
Pointer to a RECT structure to be subtracted from specified zone.
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
L_Doc2ExcludeZoneRectExt subtracts a rectangle from an existing user zone. It recalculates the rectangle list of the zone. The resulting list must be a pizzabox-shape except for OMR zones.
A pizzabox-shape is a union of rectangles, where the top of each rectangle in the union must touch the bottom of the rectangle above it. A rectangle can touch at most one rectangle above and one below. The following zone types cannot have a pizzabox-shape:
Table zones (must be rectangular)
OMR zone (can contain non-touching rectangles)
Required DLLs and Libraries
For an example, refer to L_Doc2AddZoneRectExt