title: How to rotate Bitmap without creating a new one?
body: <p>I'm using this to get rotated <code>Bitmap</code> from existed one :</p>
  
  <pre><code>private Bitmap getRotatedBitmap(Bitmap bitmap, int angle) {
          int w = bitmap.getWidth();
          int h = bitmap.getHeight();
          Matrix mtx = new Matrix();
          mtx.postRotate(angle);
          return Bitmap.createBitmap(bitmap, 0, 0, w, h, mtx, true);
      }
  </code></pre>
  
  <p>Is it possible to do it without creating new bitmap? </p>
  
  <p>I was trying to redraw the same mutable image with <code>Canvas</code>:</p>
  
  <pre><code>Bitmap targetBitmap = Bitmap.createBitmap(targetWidth, targetHeight, config);
  Canvas canvas = new Canvas(targetBitmap);
  Matrix matrix = new Matrix();
  matrix.setRotate(mRotation,source.getWidth()/2,source.getHeight()/2);
  canvas.drawBitmap(targetBitmap, matrix, new Paint());
  </code></pre>
  
  <p>but this approach had just resulted in corrupted bitmap. 
  So is there any possibilities to achieve it? </p>