/// <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)); }
public static SketchPanelLib.SketchPanel newSketchPanel() { CommandManagement.CommandManager commandManager = new CommandManagement.CommandManager(); SketchPanelLib.SketchPanel panel = new SketchPanelLib.SketchPanel(commandManager, InkCanvasSketchTest.newInkCanvasSketch()); return(panel); }
/// <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)); }