Java tutorial
//package com.java2s; //License from project: Apache License import android.graphics.Bitmap; public class Main { public static Bitmap resizeBmp(Bitmap bitmap, int requiredSizeW, int requireSizeH) { Bitmap outBitamp = Bitmap.createBitmap(bitmap, 0, 0, requiredSizeW, requireSizeH); bitmap.recycle(); return outBitamp; } }