I'm making an Android game.
I loaded a 128x240 PNG image with my sprites into a Bitmap object and tried to retrieve a 16x16 tile from it via createBitmap(bitmap, x, y, w, h)
, but got a 1/4 smaller section of the picture instead.
The width/height of the picture according to getWidth
/getHeight
is 512x960.
What am I doing wrong?