cvs: phpdoc-hu /reference/image/functions imagestring.xml
| From: | Cece) Szabolcs | Date: | Sat, 06 Mar 2004 13:13:49 +0000 |
| Subject: | cvs: phpdoc-hu /reference/image/functions imagestring.xml | ||
| Groups: | php.doc.hu | ||
| Request: | Send a blank email to doc-hu+get-456@lists.php.net to get a copy of this message | ||
cece Sat Mar 6 08:13:49 2004 EDT
Modified files:
/phpdoc-hu/reference/image/functions imagestring.xml
Log:
sync
http://cvs.php.net/diff.php/phpdoc-hu/reference/image/functions/imagestring.xml?r1=1.2&r2=1.3&ty=u
Index: phpdoc-hu/reference/image/functions/imagestring.xml
diff -u phpdoc-hu/reference/image/functions/imagestring.xml:1.2
phpdoc-hu/reference/image/functions/imagestring.xml:1.3
--- phpdoc-hu/reference/image/functions/imagestring.xml:1.2 Wed Apr 17 02:57:59 2002
+++ phpdoc-hu/reference/image/functions/imagestring.xml Sat Mar 6 08:13:48 2004
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-2"?>
<!-- splitted from ./hu/functions/image.xml, last change in rev 1.1 -->
<!-- last change to 'imagestring' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: kgergely Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: kgergely Status: ready -->
<!-- OLD-Revision: 1.33/EN.1.2 -->
<refentry id="function.imagestring">
<refnamediv>
@@ -12,7 +12,7 @@
<title>Leírás</title>
<methodsynopsis>
<type>int</type><methodname>imagestring</methodname>
-
<methodparam><type>int</type><parameter>im</parameter></methodparam>
+
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
<methodparam><type>int</type><parameter>font</parameter></methodparam>
<methodparam><type>int</type><parameter>x</parameter></methodparam>
<methodparam><type>int</type><parameter>y</parameter></methodparam>
@@ -22,11 +22,36 @@
<para>
Az <function>ImageString</function> függvény kiírja az
<parameter>s</parameter> karakterláncot az
- <parameter>im</parameter> képen az
+ <parameter>image</parameter> képen az
<parameter>x</parameter>, <parameter>y</parameter> (a bal felsõ sarok
a
0, 0 pont) ponttól <parameter>col</parameter> színnel. Ha a
<parameter>font</parameter><!--nem volt paraméter tag--> értéke 1, 2, 3,
4 vagy 5, egy beépített betûkészlet kerül felhasználásra.
+ </para>
+ <para>
+ <example>
+ <title><function>imagestring</function> példa</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+ // 100*30 méretû kép elõkészítése
+ $im = imagecreate(100, 30);
+
+ // fehér háttér, kék betûk
+ $bg = imagecolorallocate($im, 255, 255, 255);
+ $textcolor = imagecolorallocate($im, 0, 0, 255);
+
+ // bal fentre kerül szövegünk
+ imagestring($im, 5, 0, 0, "Helló világ!", $textcolor);
+
+ // kép elõcsalogatása
+ header("Content-type: image/jpg");
+ imagejpeg($im);
+?>
+]]>
+ </programlisting>
+ </example>
</para>
<para>
Lásd még az <function>ImageLoadFont</function> függvényt!