I don't think its an 'inexplicable' limitation... AFAIK, the gif file format
is a palette-based file format, and it is limited to 256 colors... If the
library was designed to create gif files, it should have the same
limitations as the generated file format...

Yours truly,
  Fernando Madruga

-----Original Message-----
From: Giuseppe D'Ambrosio [mailto:[EMAIL PROTECTED]]
Sent: quinta-feira, 8 de Março de 2001 12:19
To: [EMAIL PROTECTED]
Subject: gdImageColorAllocate(), self-explained


ok, it seems the normal behaviour (but IMHO also an ugly, inexplicable
limitation);

you can read it on http://www.boutell.com/gd/#gdImageColorAllocate

"In the event that all gdMaxColors colors (256) have already been allocated,
gdImageColorAllocate will return -1 to indicate failure"

(I didn't test the return code of gdImageColorAllocate() and so it's my
fault)

Giuse
 /--------------------------------\
 | http://boltthrower.webhop.org/ |
 \--------------------------------/



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to