title: Rotate Bitmap on Android Canvas
body: <p>I have some objects which I draw onto a Canvas as part of a SurfaceView. I want to be able to rotate these programmatically, e.g. <code>myParticle.setRotation(90);</code> Here's my (simplified) code to draw the Particle at the moment:</p>
  
  <pre><code>public class Particle {
  
    public void draw(Canvas canvas){
      image.setBounds((int)(xPos), (int)(yPos), (int)(xPos+radius), (int)(yPos+radius));
      image.draw(canvas);
    }
  
  }
  </code></pre>