Crop a Bitmap image

I used this method to crop the image and it works perfect: Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.xyz); Bitmap resizedBmp = Bitmap.createBitmap(bmp, 0, 0, yourwidth, yourheight); createBitmap() takes bitmap, start X, start Y, width & height as parameters.