Create a BufferedImage with the same size. Paint the original image on the BufferedImage. Then, go through all pixels of the BufferedImage using getWidth(), getHeight() and getRGB(), and reset the pixel using setRGB if it's a white pixel.
Joined: Oct 10, 2005
I am actually trying to find how to get a BufferedImage from a java.awt.Image?