PageRenderTime 46ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/php/class.swfshape.html

https://bitbucket.org/thncr/manuals
HTML | 251 lines | 136 code | 115 blank | 0 comment | 0 complexity | 516ef75fc7919c1262dafe8da0cc501b MD5 | raw file
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <head>
  4. <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  5. <title>The SWFShape class</title>
  6. </head>
  7. <body><div class="manualnavbar" style="text-align: center;">
  8. <div class="prev" style="text-align: left; float: left;"><a href="swfprebuiltclip.construct.html">SWFPrebuiltClip::__construct</a></div>
  9. <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
  10. <div class="up"><a href="book.ming.html">Ming</a></div>
  11. <div class="home"><a href="index.html">PHP Manual</a></div>
  12. </div><hr /><div id="class.swfshape" class="reference">
  13. <h1 class="title">The SWFShape class</h1>
  14. <div class="partintro"><p class="verinfo">(No version information available, might only be in SVN)</p>
  15. <div class="section" id="swfshape.intro">
  16. <h2 class="title">简介</h2>
  17. <p class="para">
  18. SWFShape.
  19. </p>
  20. </div>
  21. <div class="section" id="swfshape.synopsis">
  22. <h2 class="title">类摘要</h2>
  23. <div class="classsynopsis">
  24. <div class="ooclass"></div>
  25. <div class="classsynopsisinfo">
  26. <span class="ooclass">
  27. <strong class="classname">SWFShape</strong>
  28. </span>
  29. {</div>
  30. <div class="classsynopsisinfo classsynopsisinfo_comment">/* 方法 */</div>
  31. <div class="methodsynopsis dc-description">
  32. <span class="type">SWFFill</span> <span class="methodname"><a href="swfshape.addfill.html" class="methodname">addFill</a></span>
  33. ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$red</code></span>
  34. , <span class="methodparam"><span class="type">int</span> <code class="parameter">$green</code></span>
  35. , <span class="methodparam"><span class="type">int</span> <code class="parameter">$blue</code></span>
  36. [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$alpha</code><span class="initializer"> = 255</span></span>
  37. ] )</div>
  38. <div class="methodsynopsis dc-description">
  39. <span class="methodname"><a href="swfshape.construct.html" class="methodname">__construct</a></span>
  40. ( <span class="methodparam">void</span>
  41. )</div>
  42. <div class="methodsynopsis dc-description">
  43. <span class="type">void</span> <span class="methodname"><a href="swfshape.drawarc.html" class="methodname">drawArc</a></span>
  44. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$r</code></span>
  45. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$startAngle</code></span>
  46. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$endAngle</code></span>
  47. )</div>
  48. <div class="methodsynopsis dc-description">
  49. <span class="type">void</span> <span class="methodname"><a href="swfshape.drawcircle.html" class="methodname">drawCircle</a></span>
  50. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$r</code></span>
  51. )</div>
  52. <div class="methodsynopsis dc-description">
  53. <span class="type">int</span> <span class="methodname"><a href="swfshape.drawcubic.html" class="methodname">drawCubic</a></span>
  54. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$bx</code></span>
  55. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$by</code></span>
  56. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$cx</code></span>
  57. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$cy</code></span>
  58. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
  59. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
  60. )</div>
  61. <div class="methodsynopsis dc-description">
  62. <span class="type">int</span> <span class="methodname"><a href="swfshape.drawcubicto.html" class="methodname">drawCubicTo</a></span>
  63. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$bx</code></span>
  64. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$by</code></span>
  65. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$cx</code></span>
  66. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$cy</code></span>
  67. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
  68. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
  69. )</div>
  70. <div class="methodsynopsis dc-description">
  71. <span class="type">int</span> <span class="methodname"><a href="swfshape.drawcurve.html" class="methodname">drawCurve</a></span>
  72. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$controldx</code></span>
  73. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$controldy</code></span>
  74. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchordx</code></span>
  75. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchordy</code></span>
  76. [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$targetdx</code></span>
  77. ], <span class="methodparam"><span class="type">float</span> <code class="parameter">$targetdy</code></span>
  78. )</div>
  79. <div class="methodsynopsis dc-description">
  80. <span class="type">int</span> <span class="methodname"><a href="swfshape.drawcurveto.html" class="methodname">drawCurveTo</a></span>
  81. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$controlx</code></span>
  82. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$controly</code></span>
  83. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchorx</code></span>
  84. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$anchory</code></span>
  85. [, <span class="methodparam"><span class="type">float</span> <code class="parameter">$targetx</code></span>
  86. ], <span class="methodparam"><span class="type">float</span> <code class="parameter">$targety</code></span>
  87. )</div>
  88. <div class="methodsynopsis dc-description">
  89. <span class="type">void</span> <span class="methodname"><a href="swfshape.drawglyph.html" class="methodname">drawGlyph</a></span>
  90. ( <span class="methodparam"><span class="type"><a href="class.swffont.html" class="type SWFFont">SWFFont</a></span> <code class="parameter">$font</code></span>
  91. , <span class="methodparam"><span class="type">string</span> <code class="parameter">$character</code></span>
  92. [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$size</code></span>
  93. ] )</div>
  94. <div class="methodsynopsis dc-description">
  95. <span class="type">void</span> <span class="methodname"><a href="swfshape.drawline.html" class="methodname">drawLine</a></span>
  96. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
  97. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
  98. )</div>
  99. <div class="methodsynopsis dc-description">
  100. <span class="type">void</span> <span class="methodname"><a href="swfshape.drawlineto.html" class="methodname">drawLineTo</a></span>
  101. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
  102. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
  103. )</div>
  104. <div class="methodsynopsis dc-description">
  105. <span class="type">void</span> <span class="methodname"><a href="swfshape.movepen.html" class="methodname">movePen</a></span>
  106. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$dx</code></span>
  107. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$dy</code></span>
  108. )</div>
  109. <div class="methodsynopsis dc-description">
  110. <span class="type">void</span> <span class="methodname"><a href="swfshape.movepento.html" class="methodname">movePenTo</a></span>
  111. ( <span class="methodparam"><span class="type">float</span> <code class="parameter">$x</code></span>
  112. , <span class="methodparam"><span class="type">float</span> <code class="parameter">$y</code></span>
  113. )</div>
  114. <div class="methodsynopsis dc-description">
  115. <span class="type">void</span> <span class="methodname"><a href="swfshape.setleftfill.html" class="methodname">setLeftFill</a></span>
  116. ( <span class="methodparam"><span class="type"><a href="class.swfgradient.html" class="type SWFGradient">SWFGradient</a></span> <code class="parameter">$fill</code></span>
  117. )</div>
  118. <div class="methodsynopsis dc-description">
  119. <span class="type">void</span> <span class="methodname"><a href="swfshape.setline.html" class="methodname">setLine</a></span>
  120. ( <span class="methodparam"><span class="type"><a href="class.swfshape.html" class="type SWFShape">SWFShape</a></span> <code class="parameter">$shape</code></span>
  121. )</div>
  122. <div class="methodsynopsis dc-description">
  123. <span class="type">void</span> <span class="methodname"><a href="swfshape.setrightfill.html" class="methodname">setRightFill</a></span>
  124. ( <span class="methodparam"><span class="type"><a href="class.swfgradient.html" class="type SWFGradient">SWFGradient</a></span> <code class="parameter">$fill</code></span>
  125. )</div>
  126. }</div>
  127. </div>
  128. </div>
  129. <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="swfshape.addfill.html">SWFShape::addFill</a> Adds a solid fill to the shape</li><li><a href="swfshape.construct.html">SWFShape::__construct</a> Creates a new shape object</li><li><a href="swfshape.drawarc.html">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="swfshape.drawcircle.html">SWFShape::drawCircle</a> — Draws a circle of radius r centered at the current location, in a counter-clockwise fashion</li><li><a href="swfshape.drawcubic.html">SWFShape::drawCubic</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcubicto.html">SWFShape::drawCubicTo</a> — Draws a cubic bezier curve using the current position and the three given points as control points</li><li><a href="swfshape.drawcurve.html">SWFShape::drawCurve</a> — Draws a curve (relative)</li><li><a href="swfshape.drawcurveto.html">SWFShape::drawCurveTo</a> — Draws a curve</li><li><a href="swfshape.drawglyph.html">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="swfshape.drawline.html">SWFShape::drawLine</a> — Draws a line (relative)</li><li><a href="swfshape.drawlineto.html">SWFShape::drawLineTo</a> — Draws a line</li><li><a href="swfshape.movepen.html">SWFShape::movePen</a> — Moves the shape's pen (relative)</li><li><a href="swfshape.movepento.html">SWFShape::movePenTo</a> Moves the shape's pen</li><li><a href="swfshape.setleftfill.html">SWFShape::setLeftFill</a> — Sets left rasterizing color</li><li><a href="swfshape.setline.html">SWFShape::setLine</a> — Sets the shape's line style</li><li><a href="swfshape.setrightfill.html">SWFShape::setRightFill</a> Sets right rasterizing color</li></ul>
  130. </div>
  131. <hr /><div class="manualnavbar" style="text-align: center;">
  132. <div class="prev" style="text-align: left; float: left;"><a href="swfprebuiltclip.construct.html">SWFPrebuiltClip::__construct</a></div>
  133. <div class="next" style="text-align: right; float: right;"><a href="swfshape.addfill.html">SWFShape::addFill</a></div>
  134. <div class="up"><a href="book.ming.html">Ming</a></div>
  135. <div class="home"><a href="index.html">PHP Manual</a></div>
  136. </div></body></html>