php-doc-en/reference/imagick/imagickdraw/pathcurvetosmoothrelative.xml
2012-01-12 05:08:38 +00:00

101 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagickdraw.pathcurvetosmoothrelative">
<refnamediv>
<refname>ImagickDraw::pathCurveToSmoothRelative</refname>
<refpurpose>Draws a cubic Bezier curve</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>bool</type><methodname>ImagickDraw::pathCurveToSmoothRelative</methodname>
<methodparam><type>float</type><parameter>x2</parameter></methodparam>
<methodparam><type>float</type><parameter>y2</parameter></methodparam>
<methodparam><type>float</type><parameter>x</parameter></methodparam>
<methodparam><type>float</type><parameter>y</parameter></methodparam>
</methodsynopsis>
&warn.undocumented.func;
<para>
Draws a cubic Bezier curve from the current point to (x,y) using relative
coordinates. The first control point is assumed to be the reflection of
the second control point on the previous command relative to the current
point. (If there is no previous command or if the previous command was not
an DrawPathCurveToAbsolute, DrawPathCurveToRelative,
DrawPathCurveToSmoothAbsolute or DrawPathCurveToSmoothRelative, assume the
first control point is coincident with the current point.) (x2,y2) is the
second control point (i.e., the control point at the end of the curve). At
the end of the command, the new current point becomes the final (x,y)
coordinate pair used in the polybezier.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>x2</parameter></term>
<listitem>
<para>
x coordinate of the second control point
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>y2</parameter></term>
<listitem>
<para>
y coordinate of the second control point
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>x</parameter></term>
<listitem>
<para>
x coordinate of the ending point
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>y</parameter></term>
<listitem>
<para>
y coordinate of the ending point
</para>
</listitem>
</varlistentry>
</variablelist>
</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
-->