Ejemplo n.º 1
0
        protected override void DrawGhost(CanvasControl sender, CanvasDrawEventArgs args)
        {
            if (!Closed)
            {
                Point start = Lines.Count == 0 ? StartLocation : Lines[Lines.Count - 1].EndLocation;
                args.DrawingSession.DrawLine(start.ToVector2(), EndLocation.ToVector2(), ShapeColor, 1);
            }

            foreach (var line in Lines)
            {
                DrawBezier(args, DRAW_PRECISION, ConvertLinesToPoints());
                line.Draw(sender, args);
            }
        }
Ejemplo n.º 2
0
 protected override void DrawGhost(CanvasControl sender, CanvasDrawEventArgs args)
 {
     args.DrawingSession.DrawLine(StartLocation.ToVector2(), EndLocation.ToVector2(), ShapeColor, 1);
 }