K
K
KeyJ2015-05-20 23:18:39
Java
KeyJ, 2015-05-20 23:18:39

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

1 answer(s)
T
Timur, 2015-05-21
@timych

www.programcreek.com/java-api-examples/index.php?a...
Something like this..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question