Поделиться через


InkAnalyzer.Load - метод (array<Byte[])

Обновлен: Ноябрь 2007

Loads saved analysis results into the ink analyzer. Also loads the ink data to the associated Microsoft.Ink.Ink object.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Function Load ( _
    serializedResults As Byte() _
) As Boolean
'Применение
Dim instance As InkAnalyzer
Dim serializedResults As Byte()
Dim returnValue As Boolean

returnValue = instance.Load(serializedResults)
public bool Load(
    byte[] serializedResults
)
public:
bool Load(
    array<unsigned char>^ serializedResults
)
public boolean Load(
    byte[] serializedResults
)
public function Load(
    serializedResults : byte[]
) : boolean

Параметры

  • serializedResults
    Тип: array<System.Byte[]
    An 8-bit unsigned integer array that contains the saved analysis results.

Возвращаемое значение

Тип: System.Boolean
true if the analysis results loaded successfully; otherwise, false.

Заметки

If ink data is included in the analysis results, the InkAnalyzer adds the saved strokes to the Microsoft.Ink.Ink object associated with the ink analyzer.

When the InkAnalyzer adds a ContextNode from the saved results, it assigns a new globally unique identifier (GUID) to the ContextNode object's Id property.

This method appends the saved analysis results to existing results. To ensure that the combined results are ordered correctly, add the area containing the loaded context nodes to the ink analyzer's DirtyRegion and reanalyze the ink.

If the InkAnalyzer adds the saved strokes to the associated Microsoft.Ink.Ink object, the loaded analysis results reference the loaded strokes in the associated ink.

If the analyzer does not add the saved strokes to the associated Microsoft.Ink.Ink object, the analyzer compares the stroke identifiers in the saved results with the stroke identifiers in the existing Microsoft.Ink.Ink object to associate the loaded analysis results with the existing strokes.

If a saved analysis hint conflicts with an existing analysis hint, the ink analyzer does not load the saved hint but does load the rest of the saved results. However, if saved stroke data is within the area of a saved analysis hint that is not loaded, the analyzer adds the bounding box of the stroke to the analyzer's DirtyRegion. Also, if saved stroke data is within an existing analysis hint's area, the analyzer also adds the bounding box of the stroke to the analyzer's DirtyRegion. For more information about analysis hints, see AnalysisHintNode.

The InkAnalyzer raises the ContextNodeCreated, ContextNodeLinkAdding, and ContextNodePropertiesUpdated events as it loads the saved results.

Примеры

This example loads saved analysis results from an 8-bit unsigned integer array, theSavedResults, into the InkAnalyzer, theInkAnalyzer. At the same time, it loads saved ink data to the analyzer's associated Microsoft.Ink.Ink object.

' Load previously saved analysis results and associated ink data.
successful = Me.theInkAnalyzer.Load(theSavedResults)
// Load previously saved analysis results and associated ink data.
successful = this.theInkAnalyzer.Load(theSavedResults);

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

InkAnalyzer Класс

InkAnalyzer - члены

Load - перегрузка

Microsoft.Ink - пространство имен

InkAnalyzer.Ink

InkAnalyzer.SaveResults

Microsoft.Ink.ContextNode

Microsoft.Ink.Ink

Microsoft.Ink.Stroke