Dela via


DelegatedInkTrailVisual.AddTrailPointsWithPrediction Method

Definition

Adds both actual and predicted "wet" ink points to the DelegatedInkTrailVisual.

uint32_t AddTrailPointsWithPrediction(winrt::array_view <InkTrailPoint> const& inkPoints, winrt::array_view <InkTrailPoint> const& predictedInkPoints);
public uint AddTrailPointsWithPrediction(InkTrailPoint[] inkPoints, InkTrailPoint[] predictedInkPoints);
function addTrailPointsWithPrediction(inkPoints, predictedInkPoints)
Public Function AddTrailPointsWithPrediction (inkPoints As InkTrailPoint(), predictedInkPoints As InkTrailPoint()) As UInteger

Parameters

inkPoints
InkTrailPoint[]

The actual "wet" ink points.

predictedInkPoints
InkTrailPoint[]

The predicted "wet" ink points.

Returns

UInt32

uint32_t

The generation ID for the "wet" ink points.

Remarks

Predicted points act like actual points and are appended to the end of the ink trail after any actual points.

Subsequent calls to AddTrailPoints (or AddTrailPointsWithPrediction) will remove all predicted points before adding new points.

The predicted points are provided by the app to reduce ink latency. They are overwritten by the actual positions when received by the app and added to the DelegatedInkTrailVisual.

Applies to

See also