C
CooperFan9390
Hello,
I have aan application which loads a .BMP and displays it on the screen
using memoryImageSource and as an ImageIcon on a JLabel in a
JScrollPane.
I have written a very basic zoom function which multiplies every pixel
whith the zoomFactor, so its lossless zooming.
The problem is I can't zoom further than 3x ( a pixel turns into 3
pixels x and y ), because I get an outOfMemoryError. The minimum
heapsize is 32MB and the maximum is 256.
I would like to zoom as far as I want, lossless, and I suppose I have
to use some drawmethod.
How can this be done?
Any help would be greatly appreciated.
I have aan application which loads a .BMP and displays it on the screen
using memoryImageSource and as an ImageIcon on a JLabel in a
JScrollPane.
I have written a very basic zoom function which multiplies every pixel
whith the zoomFactor, so its lossless zooming.
The problem is I can't zoom further than 3x ( a pixel turns into 3
pixels x and y ), because I get an outOfMemoryError. The minimum
heapsize is 32MB and the maximum is 256.
I would like to zoom as far as I want, lossless, and I suppose I have
to use some drawmethod.
How can this be done?
Any help would be greatly appreciated.