goo.image.html 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html>
  4. <head>
  5. <title>Module goo.image</title>
  6. <link rel="stylesheet" href="../luadoc.css" type="text/css" />
  7. <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
  8. </head>
  9. <body>
  10. <div id="container">
  11. <div id="product">
  12. <div id="product_logo"></div>
  13. <div id="product_name"><big><b></b></big></div>
  14. <div id="product_description"></div>
  15. </div> <!-- id="product" -->
  16. <div id="main">
  17. <div id="navigation">
  18. <h1>Goo</h1>
  19. <ul>
  20. <li><a href="../index.html">Index</a></li>
  21. </ul>
  22. <!-- Module list -->
  23. <h1>Modules</h1>
  24. <ul>
  25. <li>
  26. <a href="../modules/anim.html">anim</a>
  27. </li>
  28. <li>
  29. <a href="../modules/goo.html">goo</a>
  30. </li>
  31. <li>
  32. <a href="../modules/goo.button.html">goo.button</a>
  33. </li>
  34. <li>
  35. <a href="../modules/goo.checkbox.html">goo.checkbox</a>
  36. </li>
  37. <li>
  38. <a href="../modules/goo.colorpick.html">goo.colorpick</a>
  39. </li>
  40. <li><strong>goo.image</strong></li>
  41. <li>
  42. <a href="../modules/goo.null.html">goo.null</a>
  43. </li>
  44. <li>
  45. <a href="../modules/goo.object.html">goo.object</a>
  46. </li>
  47. <li>
  48. <a href="../modules/goo.panel.html">goo.panel</a>
  49. </li>
  50. <li>
  51. <a href="../modules/goo.progressbar.html">goo.progressbar</a>
  52. </li>
  53. <li>
  54. <a href="../modules/goo.text.html">goo.text</a>
  55. </li>
  56. <li>
  57. <a href="../modules/goo.textinput.html">goo.textinput</a>
  58. </li>
  59. </ul>
  60. <!-- File list -->
  61. </div><!-- id="navigation" -->
  62. <div id="content">
  63. <h1>Module <code>goo.image</code></h1>
  64. <p>Draws an image.</p>
  65. <h2>Functions</h2>
  66. <table class="function_list">
  67. <tr>
  68. <td class="name" nowrap><a href="#goo.image:getImage">goo.image:getImage</a>&nbsp;()</td>
  69. <td class="summary">Get the image </td>
  70. </tr>
  71. <tr>
  72. <td class="name" nowrap><a href="#goo.image:getRotation">goo.image:getRotation</a>&nbsp;()</td>
  73. <td class="summary">Get the rotation </td>
  74. </tr>
  75. <tr>
  76. <td class="name" nowrap><a href="#goo.image:loadImage">goo.image:loadImage</a>&nbsp;(filename)</td>
  77. <td class="summary">Load the image from a file or imageData </td>
  78. </tr>
  79. <tr>
  80. <td class="name" nowrap><a href="#goo.image:setImage">goo.image:setImage</a>&nbsp;(image)</td>
  81. <td class="summary">Set the image.</td>
  82. </tr>
  83. <tr>
  84. <td class="name" nowrap><a href="#goo.image:setRotation">goo.image:setRotation</a>&nbsp;(rotation)</td>
  85. <td class="summary">Set the rotation of the image.</td>
  86. </tr>
  87. </table>
  88. <br/>
  89. <br/>
  90. <h2><a name="functions"></a>Functions</h2>
  91. <dl class="function">
  92. <dt><a name="goo.image:getImage"></a><span>goo.image:</span><strong>getImage</strong>&nbsp;( )</dt>
  93. <dd>
  94. <p class="func_description">Get the image</p>
  95. <h3>Return value:</h3>
  96. <p class="func_return">userdata: the image in image type.</p>
  97. </dd>
  98. <dt><a name="goo.image:getRotation"></a><span>goo.image:</span><strong>getRotation</strong>&nbsp;( )</dt>
  99. <dd>
  100. <p class="func_description">Get the rotation</p>
  101. <h3>Return value:</h3>
  102. <p class="func_return">number: the rotation in radians.</p>
  103. </dd>
  104. <dt><a name="goo.image:loadImage"></a><span>goo.image:</span><strong>loadImage</strong>&nbsp;( filename )</dt>
  105. <dd>
  106. <p class="func_description">Load the image from a file or imageData</p>
  107. <h3>Parameters</h3>
  108. <ul>
  109. <li>
  110. <b>filename</b> <i><small>:string</small></i><br/>the filename of the image, or imageData
  111. </li>
  112. </ul>
  113. </dd>
  114. <dt><a name="goo.image:setImage"></a><span>goo.image:</span><strong>setImage</strong>&nbsp;( image )</dt>
  115. <dd>
  116. <p class="func_description">Set the image.</p>
  117. <h3>Parameters</h3>
  118. <ul>
  119. <li>
  120. <b>image</b> <i><small>:userdata</small></i><br/>the image, must be image type.
  121. </li>
  122. </ul>
  123. </dd>
  124. <dt><a name="goo.image:setRotation"></a><span>goo.image:</span><strong>setRotation</strong>&nbsp;( rotation )</dt>
  125. <dd>
  126. <p class="func_description">Set the rotation of the image.</p>
  127. <h3>Parameters</h3>
  128. <ul>
  129. <li>
  130. <b>rotation</b> <i><small>:number</small></i><br/>rotation in radians.
  131. </li>
  132. </ul>
  133. </dd>
  134. </dl>
  135. </div> <!-- id="content" -->
  136. </div> <!-- id="main" -->
  137. <div id="about">
  138. <p><a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0!" height="31" width="88" /></a></p>
  139. </div> <!-- id="about" -->
  140. </div> <!-- id="container" -->
  141. </body>
  142. </html>