Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.10.23
LEADTOOLS OCR C DLL Help

L_Doc2SelectZone

Show in webframe

#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.

See Also

Functions:

L_Doc2LockPage, L_Doc2UnlockPage, L_Doc2SetActivePage, L_Doc2DrawPage, L_Doc2SelectZoneByPoint, L_Doc2RemoveSelectedZone, L_Doc2SetZonePen, L_Doc2SetSelectedZonePen, L_Doc2GetSelectedZone, L_Doc2Zone

Topics:

OCR Functions: Drawing Zones and Pages

Example

For an example, refer to L_Doc2DrawPage.

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.