note 75408 deleted from function.imageloadfont by nlopess
| From: | nlopess@php.net | Date: | Tue, 19 Jun 2007 12:12:30 +0000 |
| Subject: | note 75408 deleted from function.imageloadfont by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-127738@lists.php.net to get a copy of this message | ||
Note Submitter: akyhne(no-sp) at mail dot tdcadsl dot dk
----
Example 965 should be:
<?php
header("Content-type: image/png");
$im = imagecreatetruecolor(50, 20);
$black = imagecolorallocate($im, 0, 0, 0);
$white = imagecolorallocate($im, 255, 255, 255);
imagefilledrectangle($im, 1, 1, 48, 18, $white);
$font = imageloadfont("04b.gdf");
imagestring($im, $font, 0, 0, "Hello", $black);
imagepng($im);
?>
... if it has to draw a black border around the Image.