Making every pixel of an image having a specific color transparent

前端 未结 3 1419
忘了有多久
忘了有多久 2020-12-20 02:06

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

3条回答
  •  盖世英雄少女心
    2020-12-20 02:33

    Use ImageIO.read for reading a file and ImageIO.write for writing. Use the getRGB and setRGB methods of BufferedImage to change the colours.

提交回复
热议问题