L_Doc2SelectZoneExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2SelectZoneExt(hDoc, hDC, nDocId, nPageIndex, nZoneIndex, bSelect)

Selects or deselects the specified zone in the specified page, and draws the results onto the specified device context L_HDOC2.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

HDC hDC

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.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

L_INT nPageIndex

Zero-based index of the page, which contains the zone.

L_INT nZoneIndex

Zero-based index of the zone that will be selected or deselected.

L_BOOL bSelect

Flag that determines the function behavior. Possible values are:

Value Meaning
TRUE Select the zone specified by the nZoneIndex parameter.
FALSE Deselect the zone specified by the nZoneIndex parameter.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. Refer to Return Codes.

Comments

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

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.