Answer the question
In order to leave comments, you need to log in
How to recolor an image in Java?
There is a black and white image in the Image class. You need to draw it in a specific color. That is, for example, when rendering in red: replace white with red, gray with dark red, and leave black as it is. In this case, do not touch the transparency. I climbed on various resources, they mainly offer to check each pixel through BufferedImage and replace it. This is also an option, but it seems to me that there should be a ready-made solution.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question