Exemplo n.º 1
0
        private void CreateStroke()
        {
            currentStampedStrokeIndex++;
            currentStampedStroke = stampedStrokes[currentStampedStrokeIndex].Item2;

            var stylusPoints = new StylusPointCollection();

            AddStampedStylusPoint(stylusPoints, currentStampedStroke.StampedStylusPoints[0]);
            currentStroke = new Stroke(stylusPoints);
            inkCanvas.Strokes.Add(currentStroke);
            currentPointIndex = 1;
        }
Exemplo n.º 2
0
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
Exemplo n.º 3
0
 protected override void OnStylusDown(RawStylusInput rawStylusInput)
 {
     currentStroke = new StampedStroke();
     currentStroke.DownStylusPointStamp = DateTime.Now;
     base.OnStylusDown(rawStylusInput);
 }
Exemplo n.º 4
0
        private void CreateStroke()
        {
            currentStampedStrokeIndex++;
            currentStampedStroke = stampedStrokes[currentStampedStrokeIndex].Item2;
            
            var stylusPoints = new StylusPointCollection();
            AddStampedStylusPoint(stylusPoints, currentStampedStroke.StampedStylusPoints[0]);
            currentStroke = new Stroke(stylusPoints);
            inkCanvas.Strokes.Add(currentStroke);
            currentPointIndex = 1;

        }