Re: White background with imagecreatetruecolor()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux