title: Rotate an image X degrees C# wpf
body: <p>This has been bothering me for ages, I just want a simple method that rotates an image X degrees. (this is for a turret defense game in which the turrets need to shoot a certain direction) </p>
  
  <p>I want something like this:</p>
  
  <pre><code>public Image getRotatedImage(Image img, float angle)
  {
       //Code here to rotate the image
       return img
  }
  </code></pre>
  
  <p>All of this in c# wpf ofcourse and dynamically.. Hope you guys can help me out here :D</p>