Posted by petersprc on 10/11/06 13:15
You can use imagecolorset. There's an an example in the comment from
olivier in the manual page:
http://us3.php.net/manual/en/function.imagecolorset.php#13963
Another way is to copy the image pixel by pixel. Example:
http://www.phpied.com/image-fun/
Mark wrote:
> how might one recolor an image..so that, for example, all shades of
> purple are converted to shades of red?
>
> i'm sure someone's already made a function out there, i just don't have
> a clue what to google.
>
> if someone could point me in the right direction, or post some code, it
> would be much appreciated.
[Back to original message]
|