Re: [PHP-DB] Re: Images-weird!!

2003-02-02 Thread Mihail Bota
Got it. Thanks a lot, guys! On Mon, 3 Feb 2003, Pierre-Alain Joye wrote: > 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!

Re: [PHP-DB] Re: Images-weird!!

2003-02-02 Thread Pierre-Alain Joye
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 th

Re: [PHP-DB] Re: Images-weird!!

2003-02-02 Thread Mihail Bota
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. Thanks. On Mon, 3 Feb 2003, Pierre-Alain Joye wrote: > On Sun, 02 F

Re: [PHP-DB] Re: Images-weird!!

2003-02-02 Thread Pierre-Alain Joye
On Sun, 02 Feb 2003 14:36:38 -0800 (PST) Mihail Bota <[EMAIL PROTECTED]> wrote: > No, this is not the problem. $i and $j start from 0, anyway. The real > problem, as I see it, is the following: > I have a big loop, to create something like a checkerboard, but with > 13 or so colors. If the loop it

Re: [PHP-DB] Re: Images-weird!!

2003-02-02 Thread Pierre-Alain Joye
On Sun, 02 Feb 2003 14:36:38 -0800 (PST) Mihail Bota <[EMAIL PROTECTED]> wrote: > No, this is not the problem. I did not test your code but a color channel start at 0 and finished at 255, corresponding to 256 possibilities. pierre -- PHP Database Mailing List (http://www.php.net/) To unsubscri

[PHP-DB] Re: Images-weird!!

2003-02-02 Thread Mihail Bota
No, this is not the problem. $i and $j start from 0, anyway. The real problem, as I see it, is the following: I have a big loop, to create something like a checkerboard, but with 13 or so colors. If the loop iterates more than 256 times, then those cells with indexes bigger than 255 (or 256, does n

[PHP-DB] Re: Images-weird!!

2003-02-02 Thread Adam Royle
Hi Mihai, Didn't try your code, but noticed your comment on colours. RBG values go from 0 - 255, not 1 - 256, so this may be your problem. Adam