如果还是不清楚的话,那么明确的说:就是相当于使用photoshop将大分辨率的图片缩小然后保存,再拿来使用。
求大神帮助。Android图片bitmapimage

解决方案 »

  1.   

    看一下Android bitmap图像处理,有等比缩小的方法
      

  2.   

    public static Bitmap zoomImg(Bitmap bm, int newWidth ,int newHeight){
       // 获得图片的宽高
       int width = bm.getWidth();
       int height = bm.getHeight();
       // 计算缩放比例
       float scaleWidth = ((float) newWidth) / width;
       float scaleHeight = ((float) newHeight) / height;
       // 取得想要缩放的matrix参数
       Matrix matrix = new Matrix();
       matrix.postScale(scaleWidth, scaleHeight);
       // 得到新的图片
       Bitmap newbm = Bitmap.createBitmap(bm, 0, 0, width, height, matrix, true);
        return newbm;
      

  3.   

    用bitmap可以通过或取原来图片的宽高进行等比例缩小和放大:
    BitmapFactory.Options option = new BitmapFactory.Options();
       option.inSampleSize = 2; //将图片设为原来宽高的1/2
       Bitmap bm = BitmapFactory.decodeFile("",option);//文件流
      

  4.   

    直接使用Drawable也能达到同样的效果吧?
      

  5.   


    自问自答吧,使用这个将图片扩大或者缩小:
    ThumbnailUtils.extractThumbnail(source, width, height);
      

  6.   

    try this : 
    Bitmap.createScaledBitmap(bitmap,width,height);