Performing Handwriting Recognition
The process of handwriting recognition requires your application to use the handwriting application programming interface (API) to accomplish the following sequence of events.
To start and end a handwriting recognition session
- Call HwxConfig to initialize the recognition engine for your application.
This occurs only once for any specified application.
- Create an HRC object by using HwxCreate.
- Define the box or boxes used for processing user input by using HwxSetGuide.
- Define recognition criteria by using HwxALCValid and HwxALCPriority.
- Pass the previously-recognized character, if one exists, to the HRC with HwxSetContext.
- Call HwxInput to send ink data to the HRC as the user writes.
- Use HwxProcess to pass the HRC to the recognition engine for processing.
Note Repeat step 7 for each input stroke when performing partial recognition.
- Call HwxResultsAvailable to obtain the number of recognized characters.
- Get the recognition engine results with HwxGetResults.
- Invalidate the current HRC with HwxDestroy to complete the recognition process.