title: VB.NET custom user control graphics rotation
body: <p>this is my first question on here.
  I'm trying to build a dial control as a custom user control in VB.NET. I'm using VS2008. </p>
  
  <p>so far I have managed to rotate image using graphics.rotatetransform . however, this rotate everything. Now I have a Bitmap for the dial which should stay stable and another Bitmap for the needle which I need to rotate.</p>
  
  <p>so far i've tried this:</p>
  
  <pre><code>Dim gL As Graphics = Graphics.FromImage(bmpLongNeedle)
      gL.TranslateTransform(bmpLongNeedle.Width / 2, bmpLongNeedle.Height * 0.74)
      gL.RotateTransform(angleLongNeedle)
      gL.TranslateTransform(-bmpLongNeedle.Width / 2, -bmpLongNeedle.Height * 0.74)
      gL.DrawImage(bmpLongNeedle, 0, 0)
  </code></pre>
  
  <p>As I understand it, the image of the needle should be rotated at angle "angleLongNeedle" although i'm placing the rotated image at 0,0. However, the result is that the Needle doesn't get drawn on the control.</p>
  
  <p>any pointers as to where I might be going wrong or something else I should be doing?</p>
  
  <p>Thanks in advance</p>