This event is generated after the OCR process is complete.

[Visual Basic]
Public Event GetOCRText As OCREventHandler
[C#]
public event OCREventHandler GetOCRText

Event Data

The event handler receives arguments of type OCREventArgs.

Explanation

Within the GetOCRText event, the created text can be referenced by an argument of type OCREventArgs.

Example Code

[C#]
public MainWindow()
{
     InitializeComponent();

     objOCR = new OCR();
     objOCR.GetOcrText += OCR_Event;
}

public void OCR_Event(object sender, OCREventArgs e)
{
     textBlock.Text = e.OcrText;
}

private void button1_Click(object sender, RoutedEventArgs e)
{
     objOCR.Language = "ja";
     objOCR.ImageToText(imagekit.Image);
}

See Also

OCR Class | OCR Members

The ImageKit.NET3 is created by Newtone Corporation