What does the filter parameter to createScaledBitmap do?
问题 The declaration of android.graphics.Bitmap.createScaledBitmap is public static Bitmap createScaledBitmap (Bitmap src, int dstWidth, int dstHeight, boolean filter) However, the documentation doesn\'t explain any of the parameters. All of them are pretty obvious except for boolean filter . Does anyone know what it does? 回答1: A quick dig through the SKIA source-code indicates that (at least by default) the FILTER flag causes it to do a straightforward bilinear interpolation. Check Wikipedia or