Thread: Gd images
View Single Post
Old 03-13-2008, 11:49 AM   #4 (permalink)
Rendair
The Addict
Upcoming Programmer Top Contributor 
 
Rendair's Avatar
 
Join Date: Nov 2007
Location: UK
Posts: 319
Thanks: 18
Rendair is on a distinguished road
Default

imagecreatetruecolor() returns an image identifier representing a black image of the specified size.

in order to change the background colour you can use the following script.

PHP Code:
$bg imagecolorallocate($im2331491); 
Place right after the imagecreatetruecolor()
__________________
www.jooney.co.uk - the online portfolio
Send a message via MSN to Rendair
Rendair is offline  
Reply With Quote