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)
I want something like this:
public Image getRotatedImage(Image img, float angle)
{
//Code here to rotate the image
return img
}
All of this in c# wpf ofcourse and dynamically.. Hope you guys can help me out here :D