#include "ltdoc2.h"
L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2SelectZone(hDoc, hDC, nPageIndex, nZoneIndex, bSelect)
Selects or deselects the specified zone in the specified page and draws the results into the specified device context (L_HDC).
Handle to the OCR document.
Handle to a device context, such as a screen, to use as the display surface. The mapping mode of the device context must be MM_TEXT.
Index of the page, which contains the zone. This index is zero-based.
Index of the zone that will be selected or deselected. This index is zero-based.
Flag that determines the function behavior. Possible values are:
Value | Meaning |
---|---|
TRUE | Select the specified zone by nZoneIndex parameter. |
FALSE | Deselect the specified zone by nZoneIndex parameter. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
To draw a page, call the L_Doc2DrawPage / L_Doc2DrawPageExt function.
To select a zone by specifying a hit point, call the L_Doc2SelectZoneByPoint / L_Doc2SelectZoneByPointExt function.
Required DLLs and Libraries
For an example, refer to L_Doc2DrawPage.