How to combine images without loading them into RAM in Java
I have a very large image (around a gigapixel) that I want to generate. So far, I can only create an image of about 400000 pixels in buffered image, and then there will be an out of memory error I want to build the image piece by piece, and then combine these fragments without loading the image into memory I can also do this by writing each part to a file, but imageio does not support this operation
Solution
I think Jai can help you build what you want I suggest looking at the data structures and streams provided by jai
In addition, looking at these questions may help you put forward your ideas
> How to save a large fractal image with the least possible memory footprint > How to create a big image file from many tiles > Appending to an Image File
You basically want to turn around 2 Good luck with your project;)