How to replace colors in BufferedImage in JAVA

后端 未结 4 1877
星月不相逢
星月不相逢 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:12

    It looks like the idiomatic way to do this is to implement a LookupOp and then apply this operation to create a new target BufferedImage. There is a great answer here.

提交回复
热议问题