Posted on 2008-04-27 23:57:45-07 by tonyc in response to 7772
Re: when I use setpixel(x,y, color!=black) it puts those pixel black

Your image is 32 pixels high and you're trying to write at y == 50.

Changing:

$p->setpixel(x=>32, y=>50, color=>'#DC6464');

to

$p->setpixel(x=>32, y=>31, color=>'#DC6464');

will draw a pixel on the last row of the image.

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.