Java tutorial
//package com.java2s; import android.graphics.Bitmap; public class Main { public static Bitmap cutImage(Bitmap src, int cutY) { //DLOG.d("choices", "cutImage!!"); int bit_x, bit_y, bit_width, bit_height; bit_y = cutY; bit_height = src.getHeight() - 2 * bit_y; bit_width = bit_height * 10 / 16; bit_x = (src.getWidth() - bit_width) / 2 + 1; return Bitmap.createBitmap(src, bit_x, bit_y, bit_width, bit_height); } }