mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
whitespace + changed see also (sorry Derick!)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@167289 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
fed18ab532
commit
e9c5a7f63c
1 changed files with 13 additions and 14 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/image.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imagestring">
|
||||
<refnamediv>
|
||||
|
@ -31,27 +31,26 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// create a 100*30 image
|
||||
$im = imagecreate(100, 30);
|
||||
|
||||
// create a 100*30 image
|
||||
$im = imagecreate(100, 30);
|
||||
// white background and blue text
|
||||
$bg = imagecolorallocate($im, 255, 255, 255);
|
||||
$textcolor = imagecolorallocate($im, 0, 0, 255);
|
||||
|
||||
// white background and blue text
|
||||
$bg = imagecolorallocate($im, 255, 255, 255);
|
||||
$textcolor = imagecolorallocate($im, 0, 0, 255);
|
||||
|
||||
// write the string at the top left
|
||||
imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
|
||||
|
||||
// output the image
|
||||
header("Content-type: image/jpg");
|
||||
imagejpeg($im);
|
||||
// write the string at the top left
|
||||
imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
|
||||
|
||||
// output the image
|
||||
header("Content-type: image/jpeg");
|
||||
imagejpeg($im);
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
See also <function>imageloadfont</function>.
|
||||
See also <function>imageloadfont</function>, and <function>imagettftext</function>.
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
|
Loading…
Reference in a new issue