GetIntermediatePoints() public method

public GetIntermediatePoints ( ) : IVector
return IVector
Ejemplo n.º 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.");
     }
 }
Ejemplo n.º 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);
         }
     }
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 4
0
 private void Input_PointerMoved(object sender, PointerEventArgs args)
 {
     gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
     args.Handled = true;
 }
Ejemplo n.º 5
0
 void OnPointerMoved(CoreWindow sender, PointerEventArgs args)
 {
     gestureRecognizer.ProcessMoveEvents(args.GetIntermediatePoints());
 }