Exemplo n.º 1
0
 protected void DrawObjectSelected(RenderTarget rt, LiveLine l)
 {
     rt.DrawLine(l.P1.ToPoint2F(), l.P2.ToPoint2F(), selectedLineBrush, Model.SelectedLineWidth, stroke);
     rt.DrawText(l.Value.ToString(), selectedTextFormat, new RectangleF(l.MouseLocation.X, l.MouseLocation.Y - 30, 100, 100).ToRectF(), selectedTextBrush);
 }
Exemplo n.º 2
0
 protected void DrawObjectUnselected(RenderTarget rt, LiveLine l)
 {
     normalLineBrush.Opacity = 0.8f;
     rt.DrawLine(l.P1.ToPoint2F(), l.P2.ToPoint2F(), normalLineBrush, Model.LineWidth, stroke);
 }