Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- jean marc
August 31, 2005, 8:31 am
rate this thread
I am trying to reduce a truecolor image to a palette one.
imagetruecolortopalette() works just fine, except, that I would like to
keep a few color unchanged. like a (255,0,0) red, a (255,255,255) white
... and so on.
My truecolors images are somewhat greenish, with only a tiny bit of red
or white, so when I use imagetruecolortopalette(), those colors are
It would be great to initialise the destination palette with a few
colors, and then let imagetruecolortopalette() do the job for the rest
of the palette.
Is it possible ?