Provides access to layout analysis, writing and drawing classification, and handwriting recognition.
Assembly: IACore (in IACore.dll)
uses stroke packet data to analyze ink and does not interact with ink or stroke objects directly.
To avoid a memory leak, you must explicitly call the Dispose method on any object to which an event handler has been attached before the object goes out of scope.
To add strokes to or remove strokes from the for analysis, use the AddStroke, AddStrokes, RemoveStroke, or RemoveStrokes method. These methods update the DirtyRegion property, which is the region for which strokes are analyzed in the next analysis operation.
During analysis, the raises a number of events, including events generated during background analysis on the thread upon which the analyzer is created. Many events support the data proxy features of the . For more information, see Data Proxy with Ink Analysis.
To stop the analysis process from within an event handler, call the Abort method.
To modify the language the ink analyzer uses to recognize handwriting, use SetStrokeLanguageId or SetStrokesLanguageId. To modify how the ink analyzer classifies specific strokes, use SetStrokeType or SetStrokesType.
The loads all of the installed ink recognizers. The GetInkRecognizersByPriority method returns an InkRecognizerBaseCollection containing each available InkRecognizerBase. If more than one ink recognizer supports a specific language, use SetHighestPriorityInkRecognizer(InkRecognizer) to set which ink recognizer handles strokes of that language.
Using analysis hints can improve the recognition accuracy by providing extra context to the ink analyzer. The additional context information can help the ink analyzer narrow down the number of possible recognition results. For example, you can scope down by defining factoids, expected words or structuring your input into a recognition guide. For more information on providing context to the ink analyzer, see
The ink analyzer represents analysis results as a string or as a tree of ContextNodeBase objects. To access the recognized string, use GetRecognizedString. To access the root of the tree, use the RootNode property. The ink analyzer has the following methods for finding specific context nodes or text.
For more information about using the to analyze ink, see Ink Analysis Overview.
// Create the ink analyzer and enable automatic reconciliation and // automatic stroke cache cleanup, but not intermediate results. System.Windows.Ink.AnalysisCore.InkAnalyzerBase theInkAnalyzerBase = new System.Windows.Ink.AnalysisCore.InkAnalyzerBase(); theInkAnalyzerBase.AnalysisModes = System.Windows.Ink.AnalysisCore.AnalysisModes.AutomaticReconciliationEnabled | System.Windows.Ink.AnalysisCore.AnalysisModes.StrokeCacheAutoCleanupEnabled; // Since automatic stroke cache cleanup is enabled, add an event // handler for the UpdateStrokesCacheBase event. theInkAnalyzerBase.UpdateStrokesCacheBase += new System.Windows.Ink.AnalysisCore.UpdateStrokesCacheBaseEventHandler( theInkAnalyzerBase_UpdateStrokesCacheBase);
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.