Join images (tiles) with low memory footprint using JAI
I have the following problem: I try to join many tile images into a big image using Java2D and BufferedImage and then storing it as PNG or JPG. Memory usage is linear - for 4000x4000 pixel result image (16,000,000 pixel) I need 16 times more memory than for a 1,000,000 pixel image.
Is there a method of joining small images into a large image using a constant memory footprint using JAI? Any hints will be appreciated.