createScaledBitmap,filter作用?
关于安卓的 createScaledBitmap方法的入参,filter的作用是什么?
/**
* Creates a new bitmap, scaled from an existing bitmap, when possible. If the* specified width and height are the same as the current width and height of
* the source bitmap, the source bitmap is returned and no new bitmap is
* created.
*
* @param src The source bitmap.
* @param dstWidth The new bitmap's desired width.
* @param dstHeight The new bitmap's desired height.
* @param filter true if the source should be filtered.
* @return The new scaled bitmap or the source bitmap if no scaling is required.
* @throws IllegalArgumentException if width is <= 0, or height is <= 0
*/
public static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight,
boolean filter) {
.......................................
#阿里巴巴##腾讯##百度##网易##京东##安卓工程师#
