DelegatedInkTrailVisual.AddTrailPointsWithPrediction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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_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.