M
Martijn Mulder
I have code like this:
java.awt.image.BufferedImage bufferedimage=
java.awt.GraphicsEnvironment.
getLocalGraphicsEnvironment().
getDefaultScreenDevice().
getDefaultConfiguration().
createCompatibleImage(100,100);
//use bufferedimage,
//then use the same code
//to create another BufferedImage
bufferedimage=
java.awt.GraphicsEnvironment.
getLocalGraphicsEnvironment().
getDefaultScreenDevice().
getDefaultConfiguration().
createCompatibleImage(200,200);
Will the original BufferedImage (size 100x100)
be garbage collected now? I never used new().
java.awt.image.BufferedImage bufferedimage=
java.awt.GraphicsEnvironment.
getLocalGraphicsEnvironment().
getDefaultScreenDevice().
getDefaultConfiguration().
createCompatibleImage(100,100);
//use bufferedimage,
//then use the same code
//to create another BufferedImage
bufferedimage=
java.awt.GraphicsEnvironment.
getLocalGraphicsEnvironment().
getDefaultScreenDevice().
getDefaultConfiguration().
createCompatibleImage(200,200);
Will the original BufferedImage (size 100x100)
be garbage collected now? I never used new().