If I have a large bitmap file that would normally generate an “Out of memory” exception, how can I load it as tiles? e.g. I have a 10,000×10,000 image, I want to split it up into a 10×10 grid of 1,000×1,000 pixel tiles.
I’ve seen the function Bitmap.createBitmap(sourceBitmap, x, y, width, height) but it requires my large image as the source input.
How can I get a tile from my input image, without fully loading the input image?
Answer from Romain Guy in Is it possible to chop a bitmap to small pieces without loading the entire thing into memory?: