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

From: Date: Sun, 07 Aug 2005 11:46:41 +0000
Subject: cvs: phpdoc-es /reference/image/functions imagecreate.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1232@lists.php.net to get a copy of this message
javi Sun Aug 7 07:46:41 2005 EDT Modified files: /phpdoc-es/reference/image/functions imagecreate.xml Log: - Añadido EN-Revision - Actualizada la descripcion - Añadido un ejemplo http://cvs.php.net/diff.php/phpdoc-es/reference/image/functions/imagecreate.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/image/functions/imagecreate.xml diff -u phpdoc-es/reference/image/functions/imagecreate.xml:1.1 phpdoc-es/reference/image/functions/imagecreate.xml:1.2 --- phpdoc-es/reference/image/functions/imagecreate.xml:1.1 Sun Apr 14 20:14:51 2002 +++ phpdoc-es/reference/image/functions/imagecreate.xml Sun Aug 7 07:46:39 2005 @@ -1,21 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/image.xml, last change in rev 1.1 --> -<!-- last change to 'imagecreate' in en/ tree in rev 1.36 --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.8 Maintainer: javi Status: ready --> +<!-- splitted from ./en/functions/image.xml, last change in rev 1.36 --> <refentry id="function.imagecreate"> <refnamediv> - <refname>ImageCreate</refname> - <refpurpose>Crea una nueva imagen</refpurpose> + <refname>imagecreate</refname> + <refpurpose>Crea una nueva imagen con una paleta de colores</refpurpose> </refnamediv> <refsect1> <title>Descripci&oacute;n</title> <methodsynopsis> - <type>int</type><methodname>imagecreate</methodname> + <type>resource</type><methodname>imagecreate</methodname> <methodparam><type>int</type><parameter>x_size</parameter></methodparam> <methodparam><type>int</type><parameter>y_size</parameter></methodparam> </methodsynopsis> <para> - ImageCreate devuelve un identificador de imagen representando - una imagen en blanco de tama&ntilde;o x_size por y_size.</para> + <function>imagecreate</function> devuelve un identificador de imagen representando + una imagen en blanco de tama&ntilde;o <parameter>x_size</parameter> por <parameter>y_size</parameter>. + </para> + <para> + Se recomienda emplear la funci&oacute;n <function>imagecreatetruecolor</function>. + </para> + <para> + <example> + <title> + Crear un nuevo recurso de imagen con GD y mostrar la imagen + </title> + <programlisting role="php"> +<![CDATA[ +<?php +header("Content-type: image/png"); +$im = @imagecreate(100, 50) + or die("Cannot Initialize new GD image stream"); +$background_color = imagecolorallocate($im, 255, 255, 255); +$text_color = imagecolorallocate($im, 233, 14, 91); +imagestring($im, 1, 5, 5, "A Simple Text String", $text_color); +imagepng($im); +imagedestroy($im); +?> +]]> + </programlisting> + </example> + </para> + <para> + Vea tambi&eacute;n <function>imagedestroy</function> y + <function>imagecreatetruecolor</function>. + </para> + </refsect1> </refentry>

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