Re: [PHP] White background with imagecreatetruecolor()

2005-10-22 Thread Richard Lynch
On Tue, October 18, 2005 2:21 pm, John Nichel wrote: > I'm diving into the gd functions for the first time, and I'm having a > problem creating a white background for an image when using > imagecreatetruecolor(). The manual says that this function will > create > a _black_ image, but looking at im

Re: [PHP] White background with imagecreatetruecolor()

2005-10-19 Thread Łukasz 'nostra' Wojciechowski
W odpowiedzi na maila (21:21 - 18 października 2005): > $im = imagecreatetruecolor ( 140, 140 ); > $bg = imagecolorallocate ( $im, 255, 255, 255 ); > $orgimg = imagecreatefromjpeg ( $image_data['image'] ); > imagecopyresampled ( $im, $orgimg, $thumb_x_offset, $thumb_y_offset, 0, > 0, $new_thumb_x

Re: [PHP] White background with imagecreatetruecolor() [SOLVED]

2005-10-18 Thread John Nichel
John Nichel wrote: I'm diving into the gd functions for the first time, and I'm having a problem creating a white background for an image when using imagecreatetruecolor(). The manual says that this function will create a _black_ image, but looking at imagecolorallocate() it says that the fir

[PHP] White background with imagecreatetruecolor()

2005-10-18 Thread John Nichel
I'm diving into the gd functions for the first time, and I'm having a problem creating a white background for an image when using imagecreatetruecolor(). The manual says that this function will create a _black_ image, but looking at imagecolorallocate() it says that the first call to this func