(As a preface, i'm using JDK 1.5.0_12, with JAI 1.1.3-fcs)
I'm seeing what i interpret to be overly piggish memory usage by JAI/
Java2D, such that i feel like i must have missed some basic theory
class. I've put a zip file here:
http://www.goedel.ch/bugs/java/SimpleJAIZoom.zip (15kb)
It contains a bitmap tiff of size 1750x2250 and a simple class which
paints a loaded image file into a JFrame; running this (i use -
Xmx128m), dumps periodic used memory reports during increasing
scaling of the original image.
Ignoring for the moment that JAI is not respecting the BufferedImage
type (ok - why does JAI not respect the BI type of the source image
in a scale? in this case, i'm handing over a TYPE_BYTE_BINARY and
getting back a TYPE_CUSTOM (and judging from the size - now 24 bits
per pixel) :-/ ), the memory being used by the JVM is growing much
much more rapidly than the size of the obvious image it has to hold.
I'd believe it's obvious and simple, but can someone point out what
i'm missing as to the whys and wherefores of this apparent hemorrhaging?
thanks much. loki
---------------------------------------------------------------------
To unsubscribe, e-mail:
interest-unsubscribe@...
For additional commands, e-mail:
interest-help@...