Android Bitmap Scale getScaledBitmap(Bitmap bitmap, int width, int height)

Here you can find the source of getScaledBitmap(Bitmap bitmap, int width, int height)

Description

get Scaled Bitmap

Declaration

public static Bitmap getScaledBitmap(Bitmap bitmap, int width,
            int height) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

public class Main {
    public static Bitmap getScaledBitmap(Bitmap bitmap, int width,
            int height) {
        return bitmap.createScaledBitmap(bitmap, width, height, false);
    }/*from w ww  . j a v a  2s  .c om*/
}

Related

  1. getScalBitmap(Context context, Uri uri, int destW, int destH)
  2. getScalBitmap(String file, int destW, int destH)
  3. getScaledBitmapByHeight(Bitmap bm, int newHeight)
  4. scaleBitmap(Bitmap bitmap, int dstWidth, int dstHeight)
  5. scaleBitmap(Bitmap bitmap, int targetwidth)
  6. scaleBitmapIfNeededToSize(Bitmap bitmap, long size)