1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-26 08:22:08 +01:00
Files
archived-doc-es/reference/image/functions/imagecreatefromgd2.xml
Pedro Antonio Gil Rodríguez a85d394330 Actualización a la última versión
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@336392 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-05 20:00:53 +00:00

93 lines
2.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: fbc4ef92fa953823ed73021e462bd291499dc633 Maintainer: seros Status: ready -->
<!-- Reviewed: yes Maintainer: seros -->
<refentry xml:id='function.imagecreatefromgd2' xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>imagecreatefromgd2</refname>
<refpurpose>Crear una imagen nueva desde un fichero GD2 o un URL</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>resource</type><methodname>imagecreatefromgd2</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
</methodsynopsis>
<para>
Crea una imagen nueva desde un fichero GD2 o un URL.
</para>
&tip.fopen-wrapper;
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
<para>
Ruta a la imagen GD2.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>&gd.return.identifier;</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Ejemplo de <function>imagecreatefromgd2</function></title>
<programlisting role="php">
<![CDATA[
<?php
// Cargar la imagen gd2
$im = imagecreatefromgd2('./prueba.gd2');
// Aplicar un efecto sobre la imagen, en este
// caso poner en negativo la imagen si PHP 5+
if(function_exists('imagefilter'))
{
imagefilter($im, IMG_FILTER_NEGATE);
}
// Guardar la imagen
imagegd2($im, './prueba_actualizada.gd2');
imagedestroy($im);
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
&note.gd.2;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->