svn: /phpdoc/es/trunk/reference/ming/ swfgradient/addentry.xml swfgradient/construct.xml swfgradient.xml
| From: | Pedro Antonio Gil Rodríguez | Date: | Fri, 17 Sep 2010 18:41:33 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/ming/ swfgradient/addentry.xml swfgradient/construct.xml swfgradient.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-3477@lists.php.net to get a copy of this message | ||
seros Fri, 17 Sep 2010 18:41:33 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=303479
Log:
Traducción
Changed paths:
A phpdoc/es/trunk/reference/ming/swfgradient/addentry.xml
A phpdoc/es/trunk/reference/ming/swfgradient/construct.xml
A phpdoc/es/trunk/reference/ming/swfgradient.xml
Added: phpdoc/es/trunk/reference/ming/swfgradient/addentry.xml
===================================================================
--- phpdoc/es/trunk/reference/ming/swfgradient/addentry.xml (rev 0)
+++ phpdoc/es/trunk/reference/ming/swfgradient/addentry.xml 2010-09-17 18:41:33 UTC (rev 303479)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 297028 $ -->
+<!-- EN-Revision: 297028 Maintainer: seros Status: ready -->
+<refentry xml:id="function.swfgradient.addentry" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>SWFGradient->addEntry</refname>
+ <refpurpose>Añade una entrada a la lista de gradientes</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <classsynopsis>
+ <ooclass><classname>SWFGradient</classname></ooclass>
+ <methodsynopsis>
+ <type>void</type><methodname>addEntry</methodname>
+
<methodparam><type>float</type><parameter>ratio</parameter></methodparam>
+
<methodparam><type>int</type><parameter>red</parameter></methodparam>
+
<methodparam><type>int</type><parameter>green</parameter></methodparam>
+
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
+ <methodparam
choice="opt"><type>int</type><parameter>alpha</parameter><initializer>255</initializer></methodparam>
+ </methodsynopsis>
+ </classsynopsis>
+ &warn.experimental.func;
+ <para>
+ <function>swfgradient->addentry</function> añade una entrada a la lista de
gradientes.
+ <parameter>ratio</parameter> es un número entre 0 y 1 indicando dónde aparece
+ este color en el gradiente. Añadirás entradas en orden de ratio creciente.
+ </para>
+ <para>
+ <parameter>red</parameter>, <parameter>green</parameter>,
<parameter>blue</parameter>
+ es un color (modo RGB).
+ </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ &return.void;
+ </para>
+ </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
+-->
Added: phpdoc/es/trunk/reference/ming/swfgradient/construct.xml
===================================================================
--- phpdoc/es/trunk/reference/ming/swfgradient/construct.xml (rev 0)
+++ phpdoc/es/trunk/reference/ming/swfgradient/construct.xml 2010-09-17 18:41:33 UTC (rev 303479)
@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 297028 $ -->
+<!-- EN-Revision: 297028 Maintainer: seros Status: ready -->
+<refentry xml:id="function.swfgradient.construct" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>SWFGradient->__construct</refname>
+ <refpurpose>Crea un objeto de gradiente</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <classsynopsis>
+ <ooclass><classname>SWFGradient</classname></ooclass>
+ <methodsynopsis>
+ <type>SWFGradient</type><methodname>__construct</methodname>
+ <void/>
+ </methodsynopsis>
+ </classsynopsis>
+ &warn.experimental.func;
+ <para>
+ <function>swfgradient</function> crea un nuevo objeto SWFGradient.
+ </para>
+ <simpara>
+ Después de añadir las entradas al gradiente, se puede usar el gradiente
+ en un relleno de forma con el método <function>swfshape->addfill</function>.
+ </simpara>
+ <simpara>
+ SWFGradient tiene los siguientes métodos:
<function>swfgradient->addentry</function>.
+ </simpara>
+ <para>
+ Este ejemplo dibujará un gradiente grande de negro a blanco como fondo,
+ y un disco rojizo en su centro.
+ <example>
+ <title>Ejemplo de <function>swfgradient</function></title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+
+ $m = new SWFMovie();
+ $m->setDimension(320, 240);
+
+ $s = new SWFShape();
+
+ // primer gradiente- de negro a blanco
+ $g = new SWFGradient();
+ $g->addEntry(0.0, 0, 0, 0);
+ $g->addEntry(1.0, 0xff, 0xff, 0xff);
+
+ $f = $s->addFill($g, SWFFILL_LINEAR_GRADIENT);
+ $f->scaleTo(0.01);
+ $f->moveTo(160, 120);
+ $s->setRightFill($f);
+ $s->drawLine(320, 0);
+ $s->drawLine(0, 240);
+ $s->drawLine(-320, 0);
+ $s->drawLine(0, -240);
+
+ $m->add($s);
+
+ $s = new SWFShape();
+
+ // segundo gradiente- gradiente radial de rojo a transparente
+ $g = new SWFGradient();
+ $g->addEntry(0.0, 0xff, 0, 0, 0xff);
+ $g->addEntry(1.0, 0xff, 0, 0, 0);
+
+ $f = $s->addFill($g, SWFFILL_RADIAL_GRADIENT);
+ $f->scaleTo(0.005);
+ $f->moveTo(160, 120);
+ $s->setRightFill($f);
+ $s->drawLine(320, 0);
+ $s->drawLine(0, 240);
+ $s->drawLine(-320, 0);
+ $s->drawLine(0, -240);
+
+ $m->add($s);
+
+ header('Content-type: application/x-shockwave-flash');
+ $m->output();
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+ </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
+-->
Added: phpdoc/es/trunk/reference/ming/swfgradient.xml
===================================================================
--- phpdoc/es/trunk/reference/ming/swfgradient.xml (rev 0)
+++ phpdoc/es/trunk/reference/ming/swfgradient.xml 2010-09-17 18:41:33 UTC (rev 303479)
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 292734 $ -->
+<!-- EN-Revision: 292734 Maintainer: seros Status: ready -->
+<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc"
xml:id="class.swfgradient" xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
+ <title>La clase SWFGradient</title>
+ <titleabbrev>SWFGradient</titleabbrev>
+
+ <partintro>
+
+<!-- {{{ SWFGradient intro -->
+ <section xml:id="swfgradient.intro">
+ &reftitle.intro;
+ <para>
+ SWFGradient.
+ </para>
+ </section>
+<!-- }}} -->
+
+ <section xml:id="swfgradient.synopsis">
+ &reftitle.classsynopsis;
+
+<!-- {{{ Synopsis -->
+ <classsynopsis>
+ <ooclass><classname>SWFGradient</classname></ooclass>
+
+<!-- {{{ Class synopsis -->
+ <classsynopsisinfo>
+ <ooclass>
+ <classname>SWFGradient</classname>
+ </ooclass>
+ </classsynopsisinfo>
+<!-- }}} -->
+
+ <classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
+ <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook)
xpointer(id('class.swfgradient')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])"
/>
+
+ </classsynopsis>
+<!-- }}} -->
+
+ </section>
+ </partintro>
+ &reference.ming.entities.swfgradient;
+
+</phpdoc:classref>
+
+<!-- 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
+-->