[PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread Wouter de Jong
Hi, Could anyone tell why my background colors with ImageCreateTrueColor() are becoming black ? I use the following script: ?php Header(Content-type: image/png); $im = @ImageCreateTrueColor(120, 50) or die (Cannot Initialize new GD image stream!); $background_color =

Re: [PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread jla21
From the gd manual at boutell.com: Truecolor images are always filled with black at creation time. There is no concept of a background color index. I suppose you'll have to use a function like imagefill to get your yellow background. -Josh On Tue, 29 Oct 2002, Wouter de Jong wrote: Hi,

Re: [PHP] ImageCreateTrueColor background always gets black and JPEG vs. PNG color difference

2002-10-29 Thread Wouter de Jong
On Tue, Oct 29, 2002 at 07:51:21AM -0500, [EMAIL PROTECTED] wrote: From the gd manual at boutell.com: Hmm, that was one place I didn't look at :( *stupid* Truecolor images are always filled with black at creation time. There is no concept of a background color index. I suppose you'll have