Re: [PHP] libpng error

2001-04-02 Thread nicuc.ac.jp
Not test your code with GIF yet (I not have GIF support). In your book they have a result picture of this code ? I try this by change imagegif($image) to imagepng($image) and return blank image with specify width. -- -Tuna- ""Thalis A. Kalfigopoulos"" <[EMAIL PROTECTED]> wrote in message [EMAI

Re: [PHP] libpng error

2001-04-02 Thread Thalis A. Kalfigopoulos
On Mon, 2 Apr 2001, Thalis A. Kalfigopoulos wrote: > Thank you very much, really appreciate it. But I have to admit that I have an >example from a book in which he creates a gif (and not a png), where he doesn't >actually have to allocate a color. He only has 3 lines which are supposed to work.

Re: [PHP] libpng error

2001-04-02 Thread Thalis A. Kalfigopoulos
Thank you very much, really appreciate it. But I have to admit that I an example from a book in which he creates a gif (and not a png), where he doesn't actually have to allocate a color. He only has 3 lines which are supposed to work. Maybe true for gif, but cannot tell, since I don't have gif

Re: [PHP] libpng error

2001-04-01 Thread nicuc.ac.jp
Hello I make change of your code by move some line to correct line and it's work. Here this a code \n"); $blue = imageColorAllocate($image,0,0,255); imageRectangle($image, 50, 50, 150, 150, $blue); imagepng($image); // I MOVE THIS LINE imagedestroy($image); ?> Hope this will help. -Tuna-