L_Doc2SelectZone

#include "ltdoc2.h"

L_LTDOC2_API L_INT EXT_FUNCTION L_Doc2SelectZone(hDoc, hDC, nPageIndex, nZoneIndex, bSelect)

L_HDOC2 hDoc;

handle to the OCR document

HDC hDC;

handle to the target device context

L_INT nPageIndex;

page index

L_INT nZoneIndex;

zone index

L_BOOL bSelect;

flag to select or deselect

Selects or deselects the specified zone and draws it in the specified hDC.

Parameter Description
hDoc Handle to the OCR document.
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.
nPageIndex Index of the page, which contains the zone. This index is zero-based.
nZoneIndex Index of the zone that will be selected or deselected. This index is zero-based.
bSelect 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.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

Selects or deselects the specified zone in the specified page and draws the results into the device context (L_HDC).

To draw a page, call the L_Doc2DrawPage function.

To select a zone by specifying a hit point, call the L_Doc2SelectZoneByPoint function.

Required DLLs and Libraries

LTDOC2

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
LEADTOOLS Professional OCR C API Help