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无影响
posted @ 2016-01-09 21:00  独钓寒江雪kq  阅读(3782)  评论(0编辑  收藏  举报