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
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.
BufferedImage