This question is a duplicate of this question: Making every pixel of an image having a specific color transparent
But I need a Java equivalent. And I need a image-t
Use ImageIO.read for reading a file and ImageIO.write for writing. Use the getRGB and setRGB methods of BufferedImage to change the colours.
getRGB
setRGB