You can use the createBitmap static method form the Bitmap
class.
For example, if you have a 20x25 image (originalBitmap
) and want a 5x6 slice (newSlice
) at the bottom right corner, then you can do the following:
Bitmap newSlice = Bitmap.createBitmap (originalBitmap, 15, 19, 5, 6);