Image Viewer CP ActiveX Control

OCRGetRecognizedCharTop

 

Returns the top position in pixel of one of the characters recognized during the last OCR process done by the OCRStartScan() method.

Public Function OCRGetRecognizedCharTop( _
   ByVal iCharIndex As Integer
) as Integer

 

Parameter

iCharIndex
   the index of characters. The first index is 1.


Return Value
    The top position in pixel of one of the characters

Example

   

Visual Basic Syntax
ImageViewer1.OCRRecognizeMode=0
ImageViewer1.OCRStartScan(0, "dictfiles")

'after OCRRecognized event fired
itoppos= ImageViewer1.OCRGetRecognizedCharTop 1