mmm
Code: Select all
<?php
$newimage = imagecreatetruecolor(200, 200);
$background = imagecolorallocate($newimage, 255, 255, 255); //should this set the background to white?
$black = imagecolorallocate($newimage, 255, 255, 255);
imagestring($newimage, 2, 3, 10, "some text in balck", $black);
header("Content-type: image/png");
imagepng($newimage);
imagedestroy($newimage);
?>
... Your background, you've put it in black with the 255's. It should be 0s instead.
Code: Select all
<?php
$newimage = imagecreatetruecolor(200, 200);
$background = imagecolorallocate($newimage, 0, 0, 0); //should this set the background to white?
$black = imagecolorallocate($newimage, 255, 255, 255);
imagestring($newimage, 2, 3, 10, "some text in balck", $black);
header("Content-type: image/png");
imagepng($newimage);
imagedestroy($newimage);
?>
Let me tell you that this subject is quite
[mod]!@#$ up... Prepare yourself. I still didn't found information how to put an image in the background without
[mod]!@#$ all the other colors...
If you have an idea... contact me at
happytchoum@hotmail.com. It would be very appreciated =O)
HappyTchoum
feyd | watch the language, Happy