madopal has asked for the wisdom of the Perl Monks concerning the following question:
The setPixel routine assumes an indexed color to be passed (AFAIK), but...if you've declared a truecolor image, do you still have to pass an RGB value to colorClosest or colorExact to get a color index? Even though it's not indexed? Or is there some way to pass an RGB value directly to setPixel?
Thanks!
--
"...if you drink much from a bottle marked 'poison,'
it is most certain to disagree with you, sooner or later."
-- Lewis Carroll, Alice's Adventures in Wonderland
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: gd, setpixel, and truecolor
by hossman (Prior) on Sep 17, 2003 at 07:13 UTC | |
|
Re: gd, setpixel, and truecolor
by ant9000 (Monk) on Sep 17, 2003 at 07:10 UTC |