📄 function.swfshape.setleftfill.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Sets left rasterizing color</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swfshape.movepento.html">SWFShape->movePenTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.setline.html">SWFShape->setLine</a></div> <div class="up"><a href="class.swfshape.html">SWFShape</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.swfshape.setleftfill" class="refentry"> <div class="refnamediv"> <h1 class="refname">SWFShape->setLeftFill</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">SWFShape->setLeftFill</span> — <span class="dc-title">Sets left rasterizing color</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="classsynopsis"> <div class="ooclass"><a href="class.swfshape.html" class="classname">SWFShape</a></div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><b><b>setLeftFill</b></b></span> ( <span class="methodparam"><span class="type"><a href="class.swfgradient.html" 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><b>setLeftFill</b></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">$a</tt></span> ] )</div> </div> <div class="warning"><b class="warning">Warning</b><p class="simpara">This function is<em class="emphasis">EXPERIMENTAL</em>. The behaviour of this function, its name, andsurrounding documentation may change without notice in a future release of PHP.This function should be used at your own risk.</p></div> <p class="para"> What this nonsense is about is, every edge segment borders at most two fills. When rasterizing the object, it's pretty handy to know what those fills are ahead of time, so the swf format requires these to be specified. </p> <p class="para"> <b>swfshape->setleftfill()</b> sets the fill on the left side of the edge- that is, on the interior if you're defining the outline of the shape in a counter-clockwise fashion. The fill object is an SWFFill object returned from one of the addFill functions above. </p> <p class="para"> This seems to be reversed when you're defining a shape in a morph, though. If your browser crashes, just try setting the fill on the other side. </p> <p class="simpara"> Shortcut for <i>swfshape->setleftfill($s->addfill($r, $g, $b [, $a]));</i>. </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> No value is returned. </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.swfshape.setrightfill.html" class="xref">SWFShape->setRightFill</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.swfshape.movepento.html">SWFShape->movePenTo</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.swfshape.setline.html">SWFShape->setLine</a></div> <div class="up"><a href="class.swfshape.html">SWFShape</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -