title: How to scale a bitmap by height or width only
body: <p>Please mark this question as a duplicate if it has been answered already, but I can't find it. </p>
  
  <p>So I know how to scale a bitmap by height <em>AND</em> width but not <em>EITHER/OR</em></p>
  
  <pre><code>Bitmap scaledBitmap = Bitmap.createScaledBitmap(
       unscaledBitmap, wantedWidth, wantedHeight, true
  );
  </code></pre>
  
  <p>How can I scale just by height or just by width <strong>such that the aspect ratio won't change</strong>?</p>