Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static Bitmap getScaleBitmap(Bitmap srcBmp, int width, int height) { Bitmap bitmap = null; try { bitmap = Bitmap.createScaledBitmap(srcBmp, width, height, false); // recycleBitmap(srcBmp); } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return bitmap; } }