mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 00:12:06 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@319580 c90b9560-bf6c-de11-be94-00142212c4b1
127 lines
3.2 KiB
XML
127 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<!-- splitted from ./en/functions/ps.xml, last change in rev 1.12 -->
|
|
<refentry xml:id="function.ps-setpolydash" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ps_setpolydash</refname>
|
|
<refpurpose>Establecer la apariencia de una línea discontinua</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>ps_setpolydash</methodname>
|
|
<methodparam><type>resource</type><parameter>psdoc</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>arr</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Establece la longitud de las porciones negras y blancas de una línea discontinua.
|
|
La función <function>ps_setpolydash</function> se usa para establecer patrones discontinuos
|
|
más complejos.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>psdoc</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
El identificador de recursos del fichero postscript,
|
|
como el devuelto por la función <function>ps_new</function>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>arr</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<parameter>arr</parameter> es una lista de elementos de longitud alternados para
|
|
las porcioines negras y blancas.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Dibujar una línea discontinua</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$ps = ps_new();
|
|
if (!ps_open_file($ps, "poliraya.ps")) {
|
|
print "No se puede abrir el fichero PostScript\n";
|
|
exit;
|
|
}
|
|
|
|
ps_set_info($ps, "Creator", "poliraya.php");
|
|
ps_set_info($ps, "Author", "Uwe Steinmann");
|
|
ps_set_info($ps, "Title", "Ejemplo de poliraya");
|
|
|
|
ps_begin_page($ps, 596, 842);
|
|
ps_setpolydash($ps, array(10, 5, 2, 5));
|
|
ps_moveto($ps, 100, 100);
|
|
ps_lineto($ps, 200, 200);
|
|
ps_stroke($ps);
|
|
ps_end_page($ps);
|
|
|
|
ps_delete($ps);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
<para>
|
|
Este ejemplo dibuja una línea con rayas de 10 y 2 puntos de longitud, y
|
|
huecos de 5 puntos entre ellas.
|
|
</para>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ps_setdash</function></member>
|
|
</simplelist>
|
|
</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
|
|
-->
|
|
|