LineNode.InkRecognitionConfidence 属性
返回一个值,该值指示 InkAnalyzer 对于识别结果准确度的置信级别。
命名空间: Microsoft.Ink
程序集: Microsoft.Ink.Analysis(在 Microsoft.Ink.Analysis.dll 中)
语法
声明
Public ReadOnly Property InkRecognitionConfidence As InkRecognitionConfidence
用法
Dim instance As LineNode
Dim value As InkRecognitionConfidence
value = instance.InkRecognitionConfidence
public InkRecognitionConfidence InkRecognitionConfidence { get; }
public:
property InkRecognitionConfidence InkRecognitionConfidence {
InkRecognitionConfidence get ();
}
/** @property */
public InkRecognitionConfidence get_InkRecognitionConfidence()
public function get InkRecognitionConfidence () : InkRecognitionConfidence
属性值
类型:Microsoft.Ink.InkRecognitionConfidence
一个值,指示 InkAnalyzer 对于识别结果准确度的置信级别。
示例
下面的示例遍历来自 InkAnalyzer (theInkAnalyzer) 的所有 LineNode 对象。该示例为识别置信度不是 Strong 的节点中的所有笔画指定一个更大的宽度,从而标记这些笔画。
Dim lines As ContextNodeCollection = _
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.Line)
' Mark each line that is not high confidence as thick.
Dim line As LineNode
For Each line In lines
If line.InkRecognitionConfidence <> _
Microsoft.Ink.InkRecognitionConfidence.Strong Then
Dim inkStroke As Stroke
For Each inkStroke In line.Strokes
inkStroke.DrawingAttributes = New DrawingAttributes(150.0F)
Next inkStroke
End If
Next line
theNotesPanel.Refresh()
End Sub 'confidenceLineMenuItem_Click
ContextNodeCollection lines =
theInkAnalyzer.FindNodesOfType(Microsoft.Ink.ContextNodeType.Line);
// Mark each line that is not high confidence as thick.
foreach (LineNode line in lines)
{
if (line.InkRecognitionConfidence !=
Microsoft.Ink.InkRecognitionConfidence.Strong)
{
foreach (Stroke stroke in line.Strokes)
{
stroke.DrawingAttributes = new DrawingAttributes(150f);
}
}
}
theNotesPanel.Refresh();
平台
Windows Vista
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
版本信息
.NET Framework
受以下版本支持:3.0