title: Scaling a bitmap using Bicubic or Bilinear scaling
body: <p>Upon uploading an image through my android app, I downscale it to a size of 360px wide. However, I think the downscaling is horrendously bad with jagged edges and a pixelated look. When I downscale the same image in photoshop using the Bicubic or Bilinear scaling options, the photo looks lovely and surprisingly sharp for such a small image.
  How can i scale a bitmap in an android application using one of these scaling methods? I suspect the one that's being used right now is Nearest Neighbour.</p>
  <p><a href="https://imgur.com/a/iYZWRBW" rel="nofollow noreferrer">https://imgur.com/a/iYZWRBW</a></p>
  <p>The code I'm using to scale bitmaps now is:</p>
  <pre><code>val resizedBitmapSmall =
              Bitmap.createScaledBitmap(sourceBitmap, targetWidthSmall, targetHeightSmall, true)
  </code></pre>
  <p>Thanks!</p>