Excludes a rectangle from a user zone.
Handle to the OCR document. This handle is obtained by calling the L_Doc2StartUp function.
Index of the page. This is a zero-based index.
Index of the zone. This is a zero-based index.
Pointer to RECT structure to be subtracted from specific zone
|SUCCESS||The function was successful.|
|< 1||An error occurred. Refer to Return Codes.|
This function subtracts a rectangle from an existing user zone. The function will recalculate 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 zones 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_Doc2AddZoneRect