<?
header("Content-type: image/png");
// Use GD library to create transparent color PNG image of the pixel size
$ImgGD = imagecreate(400, 90);
$ImgWhite = imagecolorallocate($ImgGD, 255, 255, 255);
$black = imagecolorallocate($ImgGD, 0, 0, 0);
imagefill($ImgGD, 0, 0, $ImgWhite);
imagettftext($ImgGD, 20, 0, 20, 29, $black, "FFFHARMO.ttf", "MOO");
imagecolortransparent($ImgGD, $ImgWhite);
// Capture STDOUT to buffer
ob_start();
imagepng($ImgGD);
$Image = ob_get_contents();
ob_end_clean();
// Remember to free your memory
imagedestroy($ImgGD);
// Print image to web browser.
print $Image
?>
how do i fix it.. it looks yucky i gotta get rid of the grey stuff on the text..
i went to php.net and looked at imageantialias() and that didnt help...
my php version is:
PHP Version 4.3.4nevermind all i have to do is change the rbg values..
but how come when i try to put an IMAGE background on the website.. like
<body backgound="jacksonlayout.jpg">
<img src=http://www.htmlforums.com/archive/index.php/"moo3.php">
it just shows the text but no background?
header("Content-type: image/png");
// Use GD library to create transparent color PNG image of the pixel size
$ImgGD = imagecreate(400, 90);
$ImgWhite = imagecolorallocate($ImgGD, 255, 255, 255);
$black = imagecolorallocate($ImgGD, 0, 0, 0);
imagefill($ImgGD, 0, 0, $ImgWhite);
imagettftext($ImgGD, 20, 0, 20, 29, $black, "FFFHARMO.ttf", "MOO");
imagecolortransparent($ImgGD, $ImgWhite);
// Capture STDOUT to buffer
ob_start();
imagepng($ImgGD);
$Image = ob_get_contents();
ob_end_clean();
// Remember to free your memory
imagedestroy($ImgGD);
// Print image to web browser.
print $Image
?>
how do i fix it.. it looks yucky i gotta get rid of the grey stuff on the text..
i went to php.net and looked at imageantialias() and that didnt help...
my php version is:
PHP Version 4.3.4nevermind all i have to do is change the rbg values..
but how come when i try to put an IMAGE background on the website.. like
<body backgound="jacksonlayout.jpg">
<img src=http://www.htmlforums.com/archive/index.php/"moo3.php">
it just shows the text but no background?