Jump to content

[SOLVED] Selecting A Font For A Created Image


tarun

Recommended Posts

I Have A PHP Code Which Loads An Image And Puts Text Over It

 

<?
$string = $_GET['text'];
$r = $_GET['r'];
$g = $_GET['g'];
$b = $_GET['b'];
$id = ImageCreateFromGif("img.gif");
$yellow = ImageColorAllocate($id, 255, 255, 0);
$white = ImageColorAllocate($id, 255, 255, 255);
$black = ImageColorAllocate($id, 0, 0, 0);
$colour = ImageColorAllocate($id, $r, $g, $b);
ImageString($id, 4, 10, 20, strtoupper($string), $colour);
ImageGIF($id,"./newimg.gif");
?>
<img src="newmonkey.gif">

 

How Do I Change The Font And The Size Of The Text

And Any Other Things

 

 

Thnx,

Tarun

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.