GD::Image->trueColor(1);
-xdg
Code written by xdg and posted on PerlMonks is public domain. It is provided as is with no warranties, express or implied, of any kind. Posted code may not have been tested. Use of posted code is at your own risk.
| [reply] [d/l] |
Thanks for the advice. I have now made it to true color and am successful in getting all the lines in different color but has brought in another problem. The background has turned black. How can I correct it.
| [reply] |
Why not just draw a big filled rectangle, the size of your image, in white, before you start drawing anything else? Use the filledRectangle method. There may be a more clever way of doing it, but that's how I've solved this king of thing in the past!
s^^unp(;75N=&9I<V@`ack(u,^;s|\(.+\`|"$`$'\"$&\"\)"|ee;/m.+h/&&print$&
| [reply] [d/l] [select] |
$im->colorAllocate(255,255,255);
<-radiant.matrix->
Larry Wall is Yoda: there is no try{} (ok, except in Perl6; way to ruin a joke, Larry! ;P)
The Code that can be seen is not the true Code
"In any sufficiently large group of people, most are idiots" - Kaa's Law
| [reply] [d/l] |