title: Android bitmap with border
body: <p>I have this function, with this function I can show an image with a little rotation.
  I'm trying to display a white border arround the bitmap.</p>
  
  <pre><code>Matrix m = new Matrix();
          m.postRotate( rotation, center.x, center.y );
          m.postTranslate( ( position.x - center.x ) - xOffset , position.y - ( center.x ) );
  
          //  set the current position to the updated position
          positionMatrix.set( m );            
          renderAnimation();          
          c.drawBitmap( this.bitmap , positionMatrix, paint );
  </code></pre>
  
  <p>I'm trying to add the white border with this function: reference: <a href="https://stackoverflow.com/questions/8114085/how-to-create-white-border-around-bitmap">stackoverflow border</a></p>
  
  <pre><code>    RectF targetRect = new RectF(left+10, top+10, left + scaledWidth, top + scaledHeight);
      Bitmap dest = Bitmap.createBitmap(this.bitmap.getWith() +20, this.bitmap.getHeight() +20, this.bitmap.getConfig());
      Canvas canvas = new Canvas(dest);
      canvas.drawColor(Color.WHITE);
      canvas.drawBitmap(this.bitmap, null, targetRect, null);
  c.drawBitmap( this.bitmap , positionMatrix, paint );
  </code></pre>
  
  <p>But, not works, can some help me</p>