I'm trying to make a simple paint application. I've tried multiple solution but nothing has worked so far. Instead of drawing smooth lines i get these kind of "dotted" lines.
public void panel1_MouseMove(object sender, MouseEventArgs e)
{
if (startPaint)
{
Pen p = new Pen(color, float.Parse(s));
g.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias;
g.DrawLine(p, new Point(initX ?? e.X, initY ?? e.Y), new Point(e.X, e.Y));
initX = e.X;
initY = e.Y;
}
}