| Familiar Sight | | Join Date: Aug 2008
Posts: 175
| |
Hey,
i have found a code which generate headings at run time. here is my code which generate headings at run time - <img src="generate-headings.php?w=125&hd=Code" />
Quote:
generate-headings.php Page
- $im = imagecreatetruecolor($_GET[w], 18);
-
$white = imagecolorallocate($im, 255, 255, 255);
-
$black = imagecolorallocate($im, 0, 0, 0);
-
imagefilledrectangle($im, 0, 0,$_GET[w], 18, $white);
-
$text = $_GET[hd];
-
$font = "fonts/myriad.ttf";
-
imagettftext($im,14,0,0,13,$black,$font,$text);
-
imagepng($im);
-
imagedestroy($im);
It creates images at run time successfully. But it did not allow me to create headings with transparent background. Is there any way to fixed that issue. Kindly help me out to sort this my problem. I always get a very excellent response from PHP Masters who do a lot for me here in this community so hope to fix this problem too.
Awaiting of reply
kind regards,
Mohsin Rafique
|