Make a BufferedImage use less RAM?
问题 I have java program that reads a jpegfile from the harddrive and uses it as the background image for various other things. The image itself is stored in a BufferImage object like so: BufferedImage background background = ImageIO.read(file) This works great - the problem is that the BufferedImage object itself is enormous. For example, a 215k jpeg file becomes a BufferedImag e object that's 4 megs and change. The app in question can have some fairly large background images loaded, but whereas