protected override void PaintLine(Point start, Point end) { panel.Children.Add(new Line { Stroke = brush, X1 = start.X, X2 = end.X, Y1 = start.Y, Y2 = end.Y, StrokeThickness = LineThickness }); }
protected override void PaintDot(Point dot) { var currentDot = new Ellipse { Stroke = brush, StrokeThickness = LineThickness }; Panel.SetZIndex(currentDot, 3); currentDot.Height = LineThickness; currentDot.Width = LineThickness; currentDot.Fill = new SolidColorBrush(Colors.Green); currentDot.Margin = new Thickness(dot.X, dot.Y, 0, 0); panel.Children.Add(currentDot); }
protected override void PaintDot(Point dot) { graphics.DrawEllipse(pen, (int)dot.X, (int)dot.Y, LineThickness, LineThickness); }
protected override void PaintLine(Point start, Point end) { graphics.DrawLine(pen, start.X, start.Y, start.X, end.Y); }