black is black!

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113020 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Damien Seguy 2003-01-22 12:11:52 +00:00
parent e258fe297d
commit 88efa2192f

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
<refentry id="function.imagettftext">
<refnamediv>
@ -77,11 +77,11 @@
<?php
header("Content-type: image/jpeg");
$im = imagecreate(400,30);
$black = imagecolorallocate($im, 255,255,255);
$white = imagecolorallocate($im, 0,0,0);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);
// Replace path by your own font path
imagettftext($im, 20, 0, 10, 20, $white, "/path/arial.ttf",
imagettftext($im, 20, 0, 10, 20, $black, "/path/arial.ttf",
"Testing... Omega: &amp;#937;");
imagejpeg($im);
imagedestroy($im);