Quote (prd @ Thu, 28 Aug 2008, 01:04)
can i open just the code without the background?
because im trying and it dont open..
No it will give u an error, you can make a fake background with paint and upload this background to see it. You can also
replace the line:
Code
$image = imagecreatefrompng('bg.png');
with:
Code
// set the dimensions
$img_width = 240;
$img_height = 25;
// create the image
$image = imagecreate($img_width, $img_height);
and add:
Code
// set the background colour
// number or is top left pixel x, top left pixel y, bottom right pixel x, bottom right pixel y
imagefilledrectangle($image, 0, 0, $img_width, $img_height, $cool);
disclaimer:
im a little drunk right now, posting to help u, will reply in 5-6 hours with a better answer
.