cvs: phpdoc-es /reference/image/functions imagecharup.xml

From: Date: Sat, 06 Aug 2005 12:07:06 +0000
Subject: cvs: phpdoc-es /reference/image/functions imagecharup.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1220@lists.php.net to get a copy of this message
javi Sat Aug 6 08:07:06 2005 EDT Modified files: /phpdoc-es/reference/image/functions imagecharup.xml Log: - Añadido EN-Revision - Actualizados los parametros - Añadido el ejemplo - Actualizado el See Also http://cvs.php.net/diff.php/phpdoc-es/reference/image/functions/imagecharup.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/image/functions/imagecharup.xml diff -u phpdoc-es/reference/image/functions/imagecharup.xml:1.1 phpdoc-es/reference/image/functions/imagecharup.xml:1.2 --- phpdoc-es/reference/image/functions/imagecharup.xml:1.1 Sun Apr 14 20:14:51 2002 +++ phpdoc-es/reference/image/functions/imagecharup.xml Sat Aug 6 08:07:06 2005 @@ -1,16 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/image.xml, last change in rev 1.1 --> -<!-- last change to 'imagecharup' in en/ tree in rev 1.36 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: javi Status: ready --> +<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 --> <refentry id="function.imagecharup"> <refnamediv> - <refname>ImageCharUp</refname> + <refname>imagecharup</refname> <refpurpose>Dibuja un car&aacute;cter vertical</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>imagecharup</methodname> - <methodparam><type>int</type><parameter>im</parameter></methodparam> + <type>bool</type><methodname>imagecharup</methodname> + <methodparam><type>resource</type><parameter>im</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> @@ -18,12 +19,42 @@ <methodparam><type>int</type><parameter>col</parameter></methodparam> </methodsynopsis> <para> - ImageCharUp dibuja el caracter c verticalmente en la imagen - identificado como im en las coordenadas x, y (arriba izquierda - es 0,0) con el color col. Si la fuente es 1, 2, 3, 4 o 5 se - usa una fuente predefinida.</para> - <para> - Vea tambi&eacute;n <function>imageloadfont</function>.</para> + <function>imagecharup</function> dibuja el caracter <parameter>c</parameter> + verticalmente en la imagen identificada mediante <parameter>im</parameter> + en las coordenadas <parameter>x</parameter>, <parameter>y</parameter> (arriba izquierda + es 0,0) con el color <parameter>col</parameter>. Si la fuente es 1, 2, 3, 4 o 5 se + usa una fuente predefinida. + </para> + <para> + <example> + <title>Ejemplo de <function>imagecharup</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + +$im = imagecreate(100, 100); + +$string = 'Note that the first letter is a N'; + +$bg = imagecolorallocate($im, 255, 255, 255); +$black = imagecolorallocate($im, 0, 0, 0); + +// muestra una letra "Z" negra sobre fondo blanco +imagecharup($im, 3, 10, 10, $string, $black); + +header('Content-type: image/png'); +imagepng($im); + +?> +]]> + </programlisting> + </example> + </para> + <para> + Vea tambi&eacute;n <function>imagechar</function> y + <function>imageloadfont</function>. + </para> + </refsect1> </refentry>

« previous php.doc.es (#1220) next »