1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
|
<?xml version="1.0" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SWF::Fill - SWF fill class</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:feedback@suse.de" />
</head>
<body style="background-color: white">
<!-- INDEX BEGIN -->
<div name="index">
<p><a name="__index__"></a></p>
<ul>
<li><a href="#name">NAME</a></li>
<li><a href="#synopsis">SYNOPSIS</a></li>
<li><a href="#description">DESCRIPTION</a></li>
<li><a href="#note">NOTE</a></li>
<li><a href="#methods">METHODS</a></li>
<li><a href="#author">AUTHOR</a></li>
<li><a href="#see_also">SEE ALSO</a></li>
</ul>
<hr name="index" />
</div>
<!-- INDEX END -->
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>SWF::Fill - SWF fill class</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
use SWF::Fill;
usw SWF::Shape;
$shape = new SWF::Shape();
$fill = $shape->addGradientFill($gradient,SWFFILL_LINEAR_GRADIENT);</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>There is no object constructor because SWF::Fill objects are always returned by
method calls of SWF::Shape objects, like</p>
<pre>
$fill = $shape->addSolidFill($r, $g, $b, $a);
$fill = $shape->addGradientFill($gradient, flags);
$fill = $shape->addBitmapFill($bitmap, $flag);</pre>
<p>You can now modify that SWF::Fill object using following methods.</p>
<p>
</p>
<hr />
<h1><a name="note">NOTE</a></h1>
<p>None of the following methods is designed or useful for solid fill objects,
because it does not make any sense to rotate or scale a solid fill.</p>
<p>
</p>
<hr />
<h1><a name="methods">METHODS</a></h1>
<dl>
<dt><strong><a name="moveto" class="item">$fill->moveTo($x, $y)</a></strong>
<dd>
<p>Move $fill to ($x, $y) in global co-ordinates.</p>
</dd>
</li>
<dt><strong><a name="scaleto" class="item">$fill->scaleTo($x [,$y])</a></strong>
<dd>
<p>Set $fill scale to $x in the x-direction and $y in the y-direction.
If $y is not specified, $y=$x is assumed.</p>
</dd>
</li>
<dt><strong><a name="scale" class="item">$fill->scale($x [,$y])</a></strong>
<dd>
<p>Multiply $fill scale by $x in the x-direction and $y in the y-direction.
If $y is not specified, $y=$x is assumed.</p>
</dd>
</li>
<dt><strong><a name="rotateto" class="item">$fill-><code>rotateTo($degrees)</code></a></strong>
<dd>
<p>Set $fill rotation to $degrees.</p>
</dd>
</li>
<dt><strong><a name="rotate" class="item">$fill-><code>rotate($degrees)</code></a></strong>
<dd>
<p>Rotate $fill by $degrees.</p>
</dd>
</li>
<dt><strong><a name="skewx" class="item">$fill-><code>skewX($x)</code></a></strong>
<dd>
<p>Add $x to the current x-skew.</p>
</dd>
</li>
<dt><strong><a name="skewxto" class="item">$fill-><code>skewXTo($x)</code></a></strong>
<dd>
<p>Set x-skew to $x. 1.0 is 45-degree forward slant.
More is more forward while less is more backward.</p>
</dd>
</li>
<dt><strong><a name="skewy" class="item">$fill-><code>skewY($y)</code></a></strong>
<dd>
<p>Add $y to the current y-skew.</p>
</dd>
</li>
<dt><strong><a name="skewyto" class="item">$fill-><code>skewYTo($y)</code></a></strong>
<dd>
<p>Set y-skew to $y. 1.0 is 45-degree upward slant.
More is more upward while less is more downward.</p>
</dd>
</li>
<dt><strong><a name="setmatrix" class="item">$fill->setMatrix($a, $b, $c, $d, $e, $f)</a></strong>
<dd>
<p>Do an operation of rotating/skewing (b,c), moving (e,f) and scaling (a,d) at once.
The default initial values of an SWF::Fill object's matrix are 1.0, 0, 0, 1.0, 0, 0 .
So calling setMatrix with these defaults (<em>setMatrix(1.0, 0, 0, 1.0, 0, 0);</em>)
will reset results of earlier calls of SWF::Fill methods (like rotate(45) etc. etc.)</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="author">AUTHOR</a></h1>
<pre>
developers of
ming.sourceforge.net</pre>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p>SWF, SWF::Shape, SWF::DisplayItem, SWF::Constants</p>
</body>
</html>
|