L_Doc2RemoveZoneExt

#include "ltdoc2.h"

L_LTDOC2_API L_INT L_Doc2RemoveZoneExt(hDoc, nDocId, nPageIndex, nZoneIndex)

Removes one or more zones from the zone list for the specified page.

Parameters

L_HDOC2 hDoc

Handle to the OCR document.

L_INT nDocId

Document ID created by calling L_Doc2CreateDocument.

L_INT nPageIndex

Zero-based index of the page for which the zone(s) will be deleted.

L_INT nZoneIndex

Zero-based index of the zone(s) to be deleted.

Returns

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

Comments

The nZoneIndex parameter specifies the zone that will be deleted. Pass -1 for the nZoneIndex parameter to delete all zones in the zone list for the specified page.

The index of the first zone in the zone list is zero (0).

Required DLLs and Libraries

See Also

Functions

Topics

Example

L_INT Doc2RemoveZoneExampleExt(L_HDOC2 hDoc, L_INT nDocId, L_INT nPageIndex, L_INT nZoneIndex) 
{ 
   L_INT nRet; 
    
   nRet = L_Doc2RemoveZoneExt(hDoc, nDocId, nPageIndex, nZoneIndex); 
   if (nRet == SUCCESS) 
      MessageBox(NULL, TEXT("The specified zone is deleted from the specified page."), TEXT("Notice!"), MB_OK); 
   else 
   { 
      MessageBox(NULL, TEXT("The engine couldn't delete the specified zone."), TEXT("Error!"), MB_OK); 
      return nRet; 
   } 
   return SUCCESS; 
} 
Help Version 20.0.2020.4.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS OCR Module - OmniPage Engine C API Help