Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static Bitmap reduceBitmap(Bitmap bitmap, int w, int y) { if (bitmap != null) return bitmap = Bitmap.createScaledBitmap(bitmap, w, y, true); else return null; } }