title: Creating a scaled bitmap with createScaledBitmap in Android
body: <p>I want to create a scaled bitmap, but I seemingly get a dis-proportional image. It looks like a square while I want to be rectangular.</p>
  
  <p>My code:</p>
  
  <pre><code>Bitmap resizedBitmap = Bitmap.createScaledBitmap(myBitmap, 960, 960, false);
  </code></pre>
  
  <p>I want the image to have a MAX of 960. How would I do that? Setting width to <code>null</code> doesn't compile. It's probably simple, but I can't wrap my head around it. Thanks</p>