Exemplo n.º 1
0
 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
     });
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 protected override void PaintDot(Point dot)
 {
     graphics.DrawEllipse(pen, (int)dot.X, (int)dot.Y, LineThickness, LineThickness);
 }
Exemplo n.º 4
0
 protected override void PaintLine(Point start, Point end)
 {
     graphics.DrawLine(pen, start.X, start.Y, start.X, end.Y);
 }