GetIntermediatePoints() public méthode

public GetIntermediatePoints ( ) : IVector
Résultat IVector
Exemple #1
0
 void OnPointerMoved(CoreWindow sender, PointerEventArgs args)
 {
     try
     {
         gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
     }
     catch (System.Exception e)
     {
         System.Diagnostics.Debug.WriteLine("Lets do the time warp again.");
     }
 }
Exemple #2
0
 void UpdateIntermediatePoints(PointerEventArgs args)
 {
     foreach (var point in args.GetIntermediatePoints())
     {
         if (point.IsInContact)
         {
             currentPointsInContact[point.PointerId] = point.Position;
         }
         else
         {
             currentPointsInContact.Remove(point.PointerId);
         }
     }
 }
Exemple #3
0
        private void UnprocessedInput_PointerMoved(InkUnprocessedInput sender, Windows.UI.Core.PointerEventArgs args)
        {
            var id = args.CurrentPoint.PointerId;

            // 需要根据 id 分开多个手指

            InkStrokeBuilder.SetDefaultDrawingAttributes(new InkDrawingAttributes()
            {
                Color = Colors.Blue,
                Size  = new Size(5, 5)
            });

            _currentPointerList.AddRange(args.GetIntermediatePoints());
            _inkStroke = InkStrokeBuilder.CreateStrokeFromInkPoints(
                _currentPointerList.Select(t => new InkPoint(t.Position, t.Properties.Pressure)), Matrix3x2.Identity);

            Canvas.Invalidate();
        }
Exemple #4
0
 private void Input_PointerMoved(object sender, PointerEventArgs args)
 {
     gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
     args.Handled = true;
 }
Exemple #5
0
 void OnPointerMoved(CoreWindow sender, PointerEventArgs args)
 {
     gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
 }