Re: White background with imagecreatetruecolor()
| From: | Łukasz 'nostra' Wojciechowski | Date: | Wed, 19 Oct 2005 12:07:27 +0000 |
| Subject: | Re: White background with imagecreatetruecolor() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-224321@lists.php.net to get a copy of this message | ||
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, $new_thumb_y, $image_data['image_x'],
> $image_data['image_y'] );
try to add imagefill($im, 0, 0, $bg); after defining $bg ... (line 2?)
--
pozdrawiam
Łukasz "nostra" Wojciechowski
gg.1028640 * icq.23059512