title: Graphics.DrawLine issue
body: <p>I'm using C# WinForms to make a painting program. However, I'm using the Graphics.DrawLine method, which works fine when I move my mouse. However, it draws a flawed line (and not a "full" one). Here's what I mean:</p>
  
  <p><img src="https://i.stack.imgur.com/ic8PL.png" alt="enter image description here"></p>
  
  <p>The left one is how it <em>should</em> look like.
  The right one is how it looks like when you quickly draw a line. I want the line drawn to be perfect, not flawed like in the picture. How can I do it? This is my code.</p>
  
  <pre><code>Graphics Graphic;
  Pen myPen = new Pen(Color.Black, 1);
  Point ep = new Point(0, 0);
  Point sp = new Point(0, 0);
  int k = 0;
  
  private void panelPaint_MouseDown(object sender, MouseEventArgs e)
  {
      myPen.Width = (float)numericWidth.Value;
      myPen.Color = pbCurrent.BackColor;
  
      sp = e.Location;
  
      if (e.Button == System.Windows.Forms.MouseButtons.Left)
          k = 1;
  }
  
  private void panelPaint_MouseMove(object sender, MouseEventArgs e)
  {
      if (k == 1)
      {
          ep = e.Location;
          Graphic = panelPaint.CreateGraphics();
          Graphic.DrawLine(myPen, sp, ep);
      }
  
      sp = ep;
  }
  
  private void panelPaint_MouseUp(object sender, MouseEventArgs e)
  {
      k = 0;
  }
  </code></pre>
  
  <p>Soemthing like what Windows' Paint Brush is.</p>