Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static Bitmap cutImg(Bitmap bm, int x, int y, int newWidth, int newHeight) { bm = Bitmap.createBitmap(bm, x, y, newWidth, newHeight); return bm; } }