You are here: Re: [PHP] White background with imagecreatetruecolor() « PHP « IT news, forums, messages
Re: [PHP] White background with imagecreatetruecolor()

Posted by £ukasz 'nostra' Wojciechowski on 10/19/05 15:07

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

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация