Java tutorial
//package com.java2s; //License from project: Open Source License import android.graphics.Bitmap; public class Main { public static Bitmap resizeImageToHalf(Bitmap source) { int h = source.getHeight(); int w = source.getWidth(); return Bitmap.createBitmap(source, 0, 0, w, h); } }