mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
e258fe297d
commit
88efa2192f
1 changed files with 4 additions and 4 deletions
|
@ -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: &#937;");
|
||||
imagejpeg($im);
|
||||
imagedestroy($im);
|
||||
|
|
Loading…
Reference in a new issue