title: GDI+ How to change Line SmoothingMode?
body: <p>Is it possible to change <code>PowerPacks.LineShape</code> smoothingMode?</p>
  
  <p>I tried to use this code(a class that inherits <code>LineShape</code>):</p>
  
  <pre><code>  Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
      Dim g As Graphics = e.Graphics   
  
      ' no difference when changing the SmoothingMode ' 
      g.SmoothingMode = SmoothingMode.AntiAlias 
  
      Using pen As New Pen(Color.Blue, 3)
        g.DrawLine(pen, X1, Y1, X2, Y2)
      End Using
  
      ' MyBase.OnPaint(e) '
    End Sub
  </code></pre>
  
  <p>I always have the same result, like this:
  <a href="http://lh6.ggpht.com/_1TPOP7DzY1E/S3v1IbxlbCI/AAAAAAAADD4/q1Y9kP8wJ0g/s800/Capture2.png" rel="nofollow noreferrer">alt text http://lh6.ggpht.com/_1TPOP7DzY1E/S3v1IbxlbCI/AAAAAAAADD4/q1Y9kP8wJ0g/s800/Capture2.png</a></p>
  
  <p>=======</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>updated the test:</p>
  
  <pre><code>  Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)
      Dim g As Graphics = e.Graphics
  
      Dim oldmode As SmoothingMode = g.SmoothingMode
  
      Using pen As New Pen(Color.Blue, 3)
        g.SmoothingMode = SmoothingMode.AntiAlias
        g.DrawLine(pen, X1, Y1, X2, Y2)
        g.SmoothingMode = SmoothingMode.None
        g.DrawLine(pen, X1 + 50, Y1, X2 + 50, Y2)
      End Using
  
      g.SmoothingMode = oldmode
      g.Flush()
  
      'MyBase.OnPaint(e)'
    End Sub
  </code></pre>
  
  <p><strong>Result</strong> (don't take in consideration labels and circles):</p>
  
  <p><a href="http://lh3.ggpht.com/_1TPOP7DzY1E/S447qYvTqzI/AAAAAAAADE8/eP3kCLqQJbk/s800/Capture2.png" rel="nofollow noreferrer">alt text http://lh3.ggpht.com/_1TPOP7DzY1E/S447qYvTqzI/AAAAAAAADE8/eP3kCLqQJbk/s800/Capture2.png</a></p>
  
  <p>apparently smoothing mode is not taken inconsideration...</p>