<?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> <!-- splitted from ./en/functions/ps.xml, last change in rev 1.12 --> <refentry xml:id="function.ps-rect" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>ps_rect</refname> <refpurpose>Draws a rectangle</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>bool</type><methodname>ps_rect</methodname> <methodparam><type>resource</type><parameter>psdoc</parameter></methodparam> <methodparam><type>float</type><parameter>x</parameter></methodparam> <methodparam><type>float</type><parameter>y</parameter></methodparam> <methodparam><type>float</type><parameter>width</parameter></methodparam> <methodparam><type>float</type><parameter>height</parameter></methodparam> </methodsynopsis> <para> Draws a rectangle with its lower left corner at (<parameter>x</parameter>, <parameter>y</parameter>). The rectangle starts and ends in its lower left corner. If this function is called outside a path it will start a new path. If it is called within a path it will add the rectangle as a subpath. If the last drawing operation does not end in the lower left corner then there will be a gap in the path. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>psdoc</parameter></term> <listitem> <para> Resource identifier of the postscript file as returned by <function>ps_new</function>. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>x</parameter></term> <listitem> <para> x-coordinate of the lower left corner of the rectangle. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>y</parameter></term> <listitem> <para> y-coordinate of the lower left corner of the rectangle. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>width</parameter></term> <listitem> <para> The width of the image. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>height</parameter></term> <listitem> <para> The height of the image. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.success; </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>ps_arc</function></member> <member><function>ps_cirle</function></member> <member><function>ps_lineto</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 -->