title: Draw a scaled Bitmap to the Canvas?
body: <p>The following code defines my Bitmap:</p>
  <pre><code>Resources res = context.getResources();
  
  mBackground = BitmapFactory.decodeResource(res, R.drawable.background);
  
  // scale bitmap
  int h = 800; // height in pixels
  int w = 480; // width in pixels
  // Make sure w and h are in the correct order
  Bitmap scaled = Bitmap.createScaledBitmap(mBackground, w, h, true);
  </code></pre>
  <p>... And the following code is used to execute/draw it (the unscaled Bitmap):</p>
  <pre><code>canvas.drawBitmap(mBackground, 0, 0, null);
  </code></pre>
  <p>My question is, how might I set it to draw the scaled Bitmap returned in the form of <code>Bitmap scaled</code>, and not the original?</p>