Page 1 of 1

change color of png image

Posted: Mon Sep 18, 2006 9:25 am
by SGerlach
Hi,

I have an png image (its 65x65 and is a gradient ) and I am trying to change the color. The original one is blue and i want to change it into different colors i.e. red, yellow, purple ect. I want to do this by preferably providing a rgb color ie. 220, 0, 0

any idea

Posted: Mon Sep 18, 2006 2:48 pm
by feyd
Search through onion2k's posts. He's talked on a number of occasions about color transforms.

Posted: Mon Sep 18, 2006 3:09 pm
by onion2k
If you really mean change the colour of an image then it's something I've never actually managed. I've changed the hue.. that's not too tricky. Colour is a lot more difficult though .. brightness and saturation affect the output.

My fuzzy hue replacement code is here: viewtopic.php?p=254860#254860 .. it's mainly for changing the hue in a picture rather than something like a gradient though.