Beispiel #1
0
        /// <summary>
        /// Adds a new, straight stroke to the top-left corner of the sketch. Returns the stroke's substroke.
        /// </summary>
        /// <param name="start">Start point of the stroke</param>
        /// <param name="end">End point of the stroke</param>
        /// <returns>substroke of the new stroke</returns>
        private Sketch.Substroke AddNewStroke(Tuple <double, double> start, Tuple <double, double> end)
        {
            Stroke inkStroke = InkCanvasSketchTest.newStroke(start, end);

            return(AddSketchStrokeToSketch(inkStroke));
        }
Beispiel #2
0
        /// <summary>
        /// Adds a new, straight stroke to the top-left corner of the sketch. Returns the stroke's substroke.
        /// </summary>
        /// <returns>substroke of the new stroke</returns>
        private Sketch.Substroke AddNewStroke()
        {
            Stroke inkStroke = InkCanvasSketchTest.newStroke();

            return(AddSketchStrokeToSketch(inkStroke));
        }