How to replace colors in BufferedImage in JAVA

后端 未结 4 1868
星月不相逢
星月不相逢 2020-12-16 06:48

I\'m wondering if there is a more efficient method for replacing colors in a BufferedImage. At the moment I use the following method:

I fill an array with colors to

4条回答
  •  借酒劲吻你
    2020-12-16 07:18

    Use a HashMap. The key should be the original color, and the value the replacement. If the get returns null, do nothing.

提交回复
热议问题