get Scaled Bitmap - Android Graphics

Android examples for Graphics:Bitmap Scale

Description

get Scaled Bitmap

Demo 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 w  w . j  a va  2s  . com*/
}

Related Tutorials