Source of: /manual/en/class.swfshape.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.ming.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'class.swfshape.php',
1 => 'SWFShape',
),
'up' =>
array (
0 => 'book.ming.php',
1 => 'Ming (flash)',
),
'prev' =>
array (
0 => 'function.swfprebuiltclip.construct.php',
1 => 'SWFPrebuiltClip->__construct',
),
'next' =>
array (
0 => 'function.swfshape.addfill.php',
1 => 'SWFShape->addFill',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">The SWFShape class</h1>
<div class="partintro">
<div id="swfshape.intro" class="section">
<h2 class="title">Introduction</h2>
<p class="para">
SWFShape.
</p>
</div>
<div id="swfshape.synopsis" class="section">
<h2 class="title">Class synopsis</h2>
<div class="classsynopsis">
<div class="ooclass"><b class="classname">SWFShape</b></div>
<div class="classsynopsisinfo">
<span class="ooclass">
<b class="classname">SWFShape</b>
</span>
{</div>
<div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
<div class="methodsynopsis dc-description">
<span class="type">SWFFill</span> <span class="methodname"><b>addFill</b></span>
( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$red</tt></span>
, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$green</tt></span>
, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$blue</tt></span>
[, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$alpha</tt><span class="initializer"> = 255</span></span>
] )</div>
<div class="methodsynopsis dc-description">
<span class="type">SWFShape</span> <span class="methodname"><b>__construct</b></span>
( <span class="methodparam">void</span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>drawArc</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$r</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$startAngle</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$endAngle</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>drawCircle</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$r</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">int</span> <span class="methodname"><b>drawCubic</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$bx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$by</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$cx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$cy</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dy</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">int</span> <span class="methodname"><b>drawCubicTo</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$bx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$by</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$cx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$cy</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dy</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">int</span> <span class="methodname"><b>drawCurve</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$controldx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$controldy</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$anchordx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$anchordy</tt></span>
[, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$targetdx</tt></span>
], <span class="methodparam"><span class="type">float</span> <tt class="parameter">$targetdy</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">int</span> <span class="methodname"><b>drawCurveTo</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$controlx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$controly</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$anchorx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$anchory</tt></span>
[, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$targetx</tt></span>
], <span class="methodparam"><span class="type">float</span> <tt class="parameter">$targety</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>drawGlyph</b></span>
( <span class="methodparam"><span class="type"><a href="class.swffont.php" class="type SWFFont">SWFFont</a></span> <tt class="parameter">$font</tt></span>
, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$character</tt></span>
[, <span class="methodparam"><span class="type">int</span> <tt class="parameter">$size</tt></span>
] )</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>drawLine</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dy</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>drawLineTo</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$x</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$y</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>movePen</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dx</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$dy</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>movePenTo</b></span>
( <span class="methodparam"><span class="type">float</span> <tt class="parameter">$x</tt></span>
, <span class="methodparam"><span class="type">float</span> <tt class="parameter">$y</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>setLeftFill</b></span>
( <span class="methodparam"><span class="type"><a href="class.swfgradient.php" class="type SWFGradient">SWFGradient</a></span> <tt class="parameter">$fill</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>setLine</b></span>
( <span class="methodparam"><span class="type"><a href="class.swfshape.php" class="type SWFShape">SWFShape</a></span> <tt class="parameter">$shape</tt></span>
)</div>
<div class="methodsynopsis dc-description">
<span class="type">void</span> <span class="methodname"><b>setRightFill</b></span>
( <span class="methodparam"><span class="type"><a href="class.swfgradient.php" class="type SWFGradient">SWFGradient</a></span> <tt class="parameter">$fill</tt></span>
)</div>
}</div>
</div>
</div>
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="function.swfshape.addfill.php">SWFShape->addFill</a> — Adds a solid fill to the shape</li><li><a href="function.swfshape.construct.php">SWFShape->__construct</a> — Creates a new shape object</li><li><a href="function.swfshape.drawarc.php">SWFShape->drawArc</a> — Draws an arc of radius r centered at the current location, from angle startAngle to angle endAngle measured clockwise from 12 o'clock</li><li><a href="function.swfshape.drawcircle.php">SWFShape->drawCircle</a> — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion</li><li><a href="function.swfshape.drawcubic.php">SWFShape->drawCubic</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="function.swfshape.drawcubicto.php">SWFShape->drawCubicTo</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="function.swfshape.drawcurve.php">SWFShape->drawCurve</a> — Draws a curve (relative)</li><li><a href="function.swfshape.drawcurveto.php">SWFShape->drawCurveTo</a> — Draws a curve</li><li><a href="function.swfshape.drawglyph.php">SWFShape->drawGlyph</a> — Draws the first character in the given string into the shape using the glyph definition from the given font</li><li><a href="function.swfshape.drawline.php">SWFShape->drawLine</a> — Draws a line (relative)</li><li><a href="function.swfshape.drawlineto.php">SWFShape->drawLineTo</a> — Draws a line</li><li><a href="function.swfshape.movepen.php">SWFShape->movePen</a> — Moves the shape's pen (relative)</li><li><a href="function.swfshape.movepento.php">SWFShape->movePenTo</a> — Moves the shape's pen</li><li><a href="function.swfshape.setleftfill.php">SWFShape->setLeftFill</a> — Sets left rasterizing color</li><li><a href="function.swfshape.setline.php">SWFShape->setLine</a> — Sets the shape's line style</li><li><a href="function.swfshape.setrightfill.php">SWFShape->setRightFill</a> — Sets right rasterizing color</li></ul>
</div>
<?php manual_footer(); ?>