Is there any way or external library that can resize image using Lanczos3 or at least bicubic alg. under Android? (faster is better of course, but quality is priority, a processing time is secondary)
Everything what I've got so far is this:
Bitmap resized = Bitmap.createScaledBitmap(yourBitmap, newWidth, newHeight, true);
However it uses bilinear filter and the output quality is terrible.
There are many good libraries for Java as discussed for example here: Java - resize image without losing quality
However it's always depended on Java awt classes like java.awt.image.BufferedImage, so it can't be used in Android.
Is there a way how to change the default (bilinear) filter in Bitmap.createScaledBitmap() method or some library like Morten Nobel's lib that is able to work with android.graphics.Bitmap class (or with some raw representation, as @Tron in the comment has pointed out)?
Aucun commentaire:
Enregistrer un commentaire