Hi!
I have to show a picture of
8624 x 12545px.
My program can display it with a few memory by storing it to disk with a sort of "quad tree" structure (a lot of smaller images).
My problem comes the first time I load the big image:
To store it as a bunch of small files,
I have to load it at least once, without displaying it. (only cut & save).
But this operation "PImage img = loadImage(theBigPic.png)" uses
too much memory.
So that I get the exception "java.lang.OutOfMemoryError: Java heap space".
I upped the JVM max memory space to 1500Mo (can't put more, or the jvm cannot be instancied).
So I'd like to find a way to load the image using less memory space. (I don't need to keep transparency, and I don't need to display it). Any Idea?
1