I need to fit a huge image (BufferedImage to access colors etc) into a JScrollPane derived class. Nothing very hard until there.
The image is a JPG scan of an A3 sample of material, its size is 13030x20840 pixels, 24bits, and weights 12MB on disk -> about 800MB in RAM.
I embedded the BufferedImage into a Jpanel, which lies as the Scrollpane's view.
When I try to scroll/drag my image, it takes seconds to respond, so it is not very handy.
I need your help in order to know what I should do to render the scrollpane's scrolling and the image dragging as smooth and reactive as possible, but I easily figure out that with such an image it could be impossible.
I tried many options, such as double buffering, etc. but I'm quite new to Swing, then it is greatly possible I missed some simple solution.
If there is a need to change the BufferedImage by something else, or whatever, I'm receptive to any solution.