Visual Basic (Declaration) | |
---|---|
Public Delegate Sub OcrProgressCallback( _ ByVal data As IOcrProgressData _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As New OcrProgressCallback(AddressOf HandlerMethod) |
C# | |
---|---|
public delegate void OcrProgressCallback( IOcrProgressData data ) |
C++/CLI | |
---|---|
public delegate void OcrProgressCallback( IOcrProgressData^ data ) |
Parameters
- data
- An instance of the IOcrProgressData interface containing the progress callback data.
This example will display a simple "Processing" Windows Forms dialog that can be used to show OCR operation progress as well as allow the user to abort the current operation. You can plug this dialog into your application and call it in response to user-interface commands that correspond to OCR operations.
The OCR engine will continuously invoke the callback procedure during the different OCR operations with an instance of IOcrProgressData providing the current processing stage and a percentage indicator value. Use this function to indicate progress of application operations.
The callback can set the IOcrProgressData.Status property at any time to OcrProgressStatus.Abort to abort the OCR process and cancel all pending operations.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7