bitmap_createScaledBitmap的方法

 

public static Bitmap createScaledBitmap (Bitmap src, int dstWidth, int dstHeight, boolean filter)

Creates a new bitmap, scaled from an existing bitmap.

Parameters

  ①src           对资源src进行缩放

  ②dstWidth  缩放成宽dstWidth

  ③dstHeight 缩放成高dstHeight

  ④filter        过滤       

  如果是放大图片,filter决定是否平滑,如果是缩小图片,filter无影响
原文地址:https://www.cnblogs.com/dukc/p/5117268.html