A quick trick, if you use a solid background color, you can draw a line with a thicker pen and a color between the background color and the line color to the actual line, for example, when drawing a black background:
e.Graphics.DrawLine(new Pen(Color.FromArgb(5, 59, 100), 3), x1, y1, x2, y2); e.Graphics.DrawLine(new Pen(Color.FromArgb(11, 118, 200), 2), x1, y1, x2, y2);
This adds βglowβ to the line (even on perfect horizontal / vertical lines).
source share