Java tutorial
//package com.java2s; import android.graphics.Bitmap; import android.graphics.Matrix; public class Main { public static Bitmap scale(Bitmap src, float scale) { if (src == null) { return null; } Matrix m = new Matrix(); m.setScale(scale, scale); return Bitmap.createBitmap(src, 0, 0, src.getWidth(), src.getHeight(), m, true); } }