123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
- <html>
- <head>
- <title>Module goo.image</title>
- <link rel="stylesheet" href="../luadoc.css" type="text/css" />
- <!--meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/-->
- </head>
- <body>
- <div id="container">
- <div id="product">
- <div id="product_logo"></div>
- <div id="product_name"><big><b></b></big></div>
- <div id="product_description"></div>
- </div> <!-- id="product" -->
- <div id="main">
- <div id="navigation">
- <h1>Goo</h1>
- <ul>
-
- <li><a href="../index.html">Index</a></li>
-
- </ul>
- <!-- Module list -->
- <h1>Modules</h1>
- <ul>
- <li>
- <a href="../modules/anim.html">anim</a>
- </li>
- <li>
- <a href="../modules/goo.html">goo</a>
- </li>
- <li>
- <a href="../modules/goo.button.html">goo.button</a>
- </li>
- <li>
- <a href="../modules/goo.checkbox.html">goo.checkbox</a>
- </li>
- <li>
- <a href="../modules/goo.colorpick.html">goo.colorpick</a>
- </li>
- <li><strong>goo.image</strong></li>
-
- <li>
- <a href="../modules/goo.null.html">goo.null</a>
- </li>
- <li>
- <a href="../modules/goo.object.html">goo.object</a>
- </li>
- <li>
- <a href="../modules/goo.panel.html">goo.panel</a>
- </li>
- <li>
- <a href="../modules/goo.progressbar.html">goo.progressbar</a>
- </li>
- <li>
- <a href="../modules/goo.text.html">goo.text</a>
- </li>
- <li>
- <a href="../modules/goo.textinput.html">goo.textinput</a>
- </li>
- </ul>
- <!-- File list -->
- </div><!-- id="navigation" -->
- <div id="content">
- <h1>Module <code>goo.image</code></h1>
- <p>Draws an image.</p>
- <h2>Functions</h2>
- <table class="function_list">
- <tr>
- <td class="name" nowrap><a href="#goo.image:getImage">goo.image:getImage</a> ()</td>
- <td class="summary">Get the image </td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#goo.image:getRotation">goo.image:getRotation</a> ()</td>
- <td class="summary">Get the rotation </td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#goo.image:loadImage">goo.image:loadImage</a> (filename)</td>
- <td class="summary">Load the image from a file or imageData </td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#goo.image:setImage">goo.image:setImage</a> (image)</td>
- <td class="summary">Set the image.</td>
- </tr>
- <tr>
- <td class="name" nowrap><a href="#goo.image:setRotation">goo.image:setRotation</a> (rotation)</td>
- <td class="summary">Set the rotation of the image.</td>
- </tr>
- </table>
- <br/>
- <br/>
- <h2><a name="functions"></a>Functions</h2>
- <dl class="function">
- <dt><a name="goo.image:getImage"></a><span>goo.image:</span><strong>getImage</strong> ( )</dt>
- <dd>
- <p class="func_description">Get the image</p>
- <h3>Return value:</h3>
- <p class="func_return">userdata: the image in image type.</p>
- </dd>
- <dt><a name="goo.image:getRotation"></a><span>goo.image:</span><strong>getRotation</strong> ( )</dt>
- <dd>
- <p class="func_description">Get the rotation</p>
- <h3>Return value:</h3>
- <p class="func_return">number: the rotation in radians.</p>
- </dd>
- <dt><a name="goo.image:loadImage"></a><span>goo.image:</span><strong>loadImage</strong> ( filename )</dt>
- <dd>
- <p class="func_description">Load the image from a file or imageData</p>
- <h3>Parameters</h3>
- <ul>
-
-
- <li>
- <b>filename</b> <i><small>:string</small></i><br/>the filename of the image, or imageData
- </li>
-
-
- </ul>
- </dd>
- <dt><a name="goo.image:setImage"></a><span>goo.image:</span><strong>setImage</strong> ( image )</dt>
- <dd>
- <p class="func_description">Set the image.</p>
- <h3>Parameters</h3>
- <ul>
-
-
- <li>
- <b>image</b> <i><small>:userdata</small></i><br/>the image, must be image type.
- </li>
-
-
- </ul>
- </dd>
- <dt><a name="goo.image:setRotation"></a><span>goo.image:</span><strong>setRotation</strong> ( rotation )</dt>
- <dd>
- <p class="func_description">Set the rotation of the image.</p>
- <h3>Parameters</h3>
- <ul>
-
-
- <li>
- <b>rotation</b> <i><small>:number</small></i><br/>rotation in radians.
- </li>
-
-
- </ul>
- </dd>
- </dl>
- </div> <!-- id="content" -->
- </div> <!-- id="main" -->
- <div id="about">
- <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>
- </div> <!-- id="about" -->
- </div> <!-- id="container" -->
- </body>
- </html>
|