title: Rotate a Image to MousePos?
body: <p>I want to rotate an Image in java, initialized with </p>
  
  <pre><code>            playerimage = Toolkit.getDefaultToolkit().getImage("C:/Game/player.png"); //Load Player Image
  </code></pre>
  
  <p>drawed with:</p>
  
  <pre><code>        Graphics2D g = buffer.createGraphics();
      g.drawImage(playerimage, player.getX(), player.getY(), null); // Draw Player
  </code></pre>
  
  <p>Now, I want my playerimage, to rotate to my mouse, so it's basically looking to my mouse. How would I do this?</p>