How would clear a BufferedImage?# Java - 爪哇娇娃
g*g
1 楼
If I want to reset a BufferedImage to a transparent empty image,
(so that I can change the content of image to paint)
I am doing a new BufferedImage(BufferedImage.INT_ARGB) now,
anyway I can fill the raster instead?
I am worried if this frequent memory allocation would be a big
burden for GC and degrade performance.
(so that I can change the content of image to paint)
I am doing a new BufferedImage(BufferedImage.INT_ARGB) now,
anyway I can fill the raster instead?
I am worried if this frequent memory allocation would be a big
burden for GC and degrade performance.