title: Rotating drawable that will be used as marker icon in Google Map
body: <p>I want to add markers to the map (api v2) from a drawable currently I do it like this :</p>
  
  <pre><code>mMarkers.add(mMap.addMarker(new MarkerOptions().position(ll).icon(BitmapDescriptorFactory.fromResource(R.drawable.pin))));
  </code></pre>
  
  <p>Now I want to rotate the drawable before I use it as a marker icon. What is the best way to do it ?
  I tried </p>
  
  <pre><code>Bitmap bmpOriginal = BitmapFactory.decodeResource(this.getResources(), R.drawable.pin);
          Bitmap bmResult = Bitmap.createBitmap(bmpOriginal.getWidth(), bmpOriginal.getHeight(), Bitmap.Config.ARGB_8888);
          Canvas tempCanvas = new Canvas(bmResult); 
          tempCanvas.rotate((float)answer.getPoints().get(i).getAzimut(), bmpOriginal.getWidth()/2, bmpOriginal.getHeight()/2);
          tempCanvas.drawBitmap(bmpOriginal, 0, 0, null);
          mMarkers.add(mMap.addMarker(new MarkerOptions().position(ll).icon(BitmapDescriptorFactory.fromBitmap(bmResult))));
  </code></pre>
  
  <p>But the resulting drawable is strangely deformed. I think there must be a better and cleaner solution.</p>