title: Android: Bitmap resizing using better resampling algorithm than bilinear (like Lanczos3)
body: <p>Is there any way or external library that can resize image using <strong>Lanczos</strong> (ideally) or at least bicubic alg. under <strong>Android</strong>? (<em>faster is better of course, but quality is priority, a processing time is secondary)</em></p>
  
  <p>Everything what I've got so far is this:</p>
  
  <pre><code>Bitmap resized = Bitmap.createScaledBitmap(yourBitmap, newWidth, newHeight, true);
  </code></pre>
  
  <p>However it uses bilinear filter and the output quality is terrible. Especially if you want to preserve details (like thin lines or readable texts).</p>
  
  <p>There are many good libraries for Java as discussed for example here:
  <a href="https://stackoverflow.com/questions/24745147/java-resize-image-without-losing-quality">Java - resize image without losing quality</a></p>
  
  <p>However it's always depended on Java awt classes like <code>java.awt.image.BufferedImage</code>, so it can't be used in Android.</p>
  
  <p>Is there a way how to change the default (bilinear) filter in <code>Bitmap.createScaledBitmap()</code> method or some library like <a href="https://github.com/mortennobel/java-image-scaling" rel="noreferrer">Morten Nobel's lib</a> that is able to work with <code>android.graphics.Bitmap</code> class (or with some raw representation, as @Tron in the comment has pointed out)?</p>