On Sun, 02 Feb 2003 15:29:44 -0800 (PST)
Mihail Bota <[EMAIL PROTECTED]> wrote:
> Yeah, I had the idea with truecolor, but I do not have GD2 installed.
> I have to install it, first.
> Still, I do not understand! I only have 13 colors, why is allocating
> only 255? I am not using the indexes in the color allocation.
palette based image (imagecreate) can use a maximum of 256 colors. You
allocate a new color in each iteration of the inside loop, 16*16=256
and greater than 255, do not forget you have already one color allocated
for the background color, btw, you do no need to draw a white box with a
palette image, the 1st allocated color is the background color.
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php