0

Sorry, if I asked a question that doesn't make sense, basically i just need a code snippet and possibly an explanation on how to colour in Images in java. (The images are greyscale)

Shaun Wild
  • 1,237
  • 3
  • 17
  • 34
  • It's hard for me to guess what you're asking here. What have you tried? Where exactly are you stuck? – Hovercraft Full Of Eels Mar 18 '12 at 12:13
  • Well, I have a class which loads the image i want e.g.- public static final BufferedImage[][] car = Image.cut("/res/entity/carsheet.png", 32, 32); But i want the car i have loaded to be a different colour than it's greyscale image – Shaun Wild Mar 18 '12 at 12:15

1 Answers1

4

So, I'm guessing you want to "tint" the image? If so, see this:

Applying a tint to an image in java

If you're asking how to restore the color the image would have been if it was made in color, don't even attempt it.

Community
  • 1
  • 1
Perry Monschau
  • 883
  • 8
  • 22