Extra "ports" of juce-based plugins using the distrho build system
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

261 lines
7.1KB

  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. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  5. <head>
  6. <title>protoplug: Class juce.Image</title>
  7. <link rel="stylesheet" href="../ldoc.css" type="text/css" />
  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. <!-- Menu -->
  18. <div id="navigation">
  19. <a href="http://osar.fr">
  20. <div class=osarlogo> </div>
  21. </a>
  22. <br/>
  23. <a href="http://osar.fr/protoplug">
  24. <h1>protoplug</h1>
  25. </a>
  26. <span class="proto_subtitle">Lua API reference</span>
  27. <ul>
  28. <li><a href="../index.html">Index</a></li>
  29. </ul>
  30. <h2>Contents</h2>
  31. <ul>
  32. <li><a href="#Constructors">Constructors</a></li>
  33. <li><a href="#Methods">Methods</a></li>
  34. <li><a href="#Tables">Tables</a></li>
  35. </ul>
  36. <h2>Classes</h2>
  37. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  38. <li><a href="../classes/juce.AffineTransform.html">juce.AffineTransform</a></li>
  39. <li><a href="../classes/juce.AudioFormatReader.html">juce.AudioFormatReader</a></li>
  40. <li><a href="../classes/juce.Colour.html">juce.Colour</a></li>
  41. <li><a href="../classes/juce.ColourGradient.html">juce.ColourGradient</a></li>
  42. <li><a href="../classes/juce.Component.html">juce.Component</a></li>
  43. <li><a href="../classes/juce.FillType.html">juce.FillType</a></li>
  44. <li><a href="../classes/juce.Font.html">juce.Font</a></li>
  45. <li><a href="../classes/juce.Graphics.html">juce.Graphics</a></li>
  46. <li><strong>juce.Image</strong></li>
  47. <li><a href="../classes/juce.Justification.html">juce.Justification</a></li>
  48. <li><a href="../classes/juce.LagrangeInterpolator.html">juce.LagrangeInterpolator</a></li>
  49. <li><a href="../classes/juce.Line.html">juce.Line</a></li>
  50. <li><a href="../classes/juce.Path.html">juce.Path</a></li>
  51. <li><a href="../classes/juce.Point.html">juce.Point</a></li>
  52. <li><a href="../classes/juce.RectanglePlacement.html">juce.RectanglePlacement</a></li>
  53. <li><a href="../classes/juce.Rectangle_float.html">juce.Rectangle_float</a></li>
  54. <li><a href="../classes/juce.Rectangle_int.html">juce.Rectangle_int</a></li>
  55. </ul>
  56. <h2>Modules</h2>
  57. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  58. <li><a href="../modules/plugin.html">plugin</a></li>
  59. <li><a href="../modules/script.html">script</a></li>
  60. <li><a href="../modules/midi.html">midi</a></li>
  61. <li><a href="../modules/gui.html">gui</a></li>
  62. <li><a href="../modules/polyGen.html">polyGen</a></li>
  63. <li><a href="../modules/stereoFx.html">stereoFx</a></li>
  64. </ul>
  65. <h2>Examples</h2>
  66. <ul class="$(kind=='Topics' and '' or 'nowrap'">
  67. <li><a href="../examples/classic-filter.lua.html">classic-filter.lua</a></li>
  68. <li><a href="../examples/sine-organ.lua.html">sine-organ.lua</a></li>
  69. <li><a href="../examples/midi-chordify.lua.html">midi-chordify.lua</a></li>
  70. <li><a href="../examples/sinemouse-demo.lua.html">sinemouse-demo.lua</a></li>
  71. <li><a href="../examples/soundfile-test.lua.html">soundfile-test.lua</a></li>
  72. </ul>
  73. </div>
  74. <div id="content">
  75. <h1>Class <code>juce.Image</code></h1>
  76. <p>Image.</p>
  77. <p> Images can be loaded from a file, or created as temporary graphics targets.</p>
  78. <p> Is a pointer to a <a href="http://www.juce.com/api/classImage.html">JUCE Image</a>,
  79. and wraps some <a href="http://www.juce.com/api/classImageFileFormat.html">JUCE ImageFileFormat</a>
  80. functionality.</p>
  81. <h2><a href="#Constructors">Constructors</a></h2>
  82. <table class="function_list">
  83. <tr>
  84. <td class="name" nowrap><a href="#juce.Image.Image"><span class="proto_prefix">juce</span>.Image (filename)</a></td>
  85. <td class="summary">Load an image from a file.</td>
  86. </tr>
  87. <tr>
  88. <td class="name" nowrap><a href="#juce.Image.Image"><span class="proto_prefix">juce</span>.Image (pixelFormat, imageWidth, imageHeight, clearImage)</a></td>
  89. <td class="summary">Create a temporary in-memory image.</td>
  90. </tr>
  91. </table>
  92. <h2><a href="#Methods">Methods</a></h2>
  93. <table class="function_list">
  94. <tr>
  95. <td class="name" nowrap><a href="#juce.Image:isValid"><span class="proto_prefix">juce.Image</span>:isValid ()</a></td>
  96. <td class="summary">Check Image validity.</td>
  97. </tr>
  98. </table>
  99. <h2><a href="#Tables">Tables</a></h2>
  100. <table class="function_list">
  101. <tr>
  102. <td class="name" nowrap><a href="#juce.Image.PixelFormat"><span class="proto_prefix">juce.Image</span>.PixelFormat</a></td>
  103. <td class="summary">Pixel formats.</td>
  104. </tr>
  105. </table>
  106. <br/>
  107. <br/>
  108. <h2><a name="Constructors"></a>Constructors</h2>
  109. <dl class="function">
  110. <dt>
  111. <a name = "juce.Image.Image"></a>
  112. <strong><span class="proto_prefix">juce</span>.Image (filename)</strong>
  113. </dt>
  114. <dd>
  115. Load an image from a file.
  116. The path can be absolute or relative to the protoplug directory.
  117. To check if the file was loaded successfully, use <a href="../classes/juce.Image.html#juce.Image:isValid">isValid</a>.
  118. </ul>
  119. <h3>Parameters:</h3>
  120. <ul>
  121. <li><span class="parameter">filename</span>
  122. </li>
  123. </ul>
  124. </dd>
  125. <dt>
  126. <a name = "juce.Image.Image"></a>
  127. <strong><span class="proto_prefix">juce</span>.Image (pixelFormat, imageWidth, imageHeight, clearImage)</strong>
  128. </dt>
  129. <dd>
  130. Create a temporary in-memory image.
  131. </ul>
  132. <h3>Parameters:</h3>
  133. <ul>
  134. <li><span class="parameter">pixelFormat</span>
  135. <span class="types"><a class="type" href="../classes/juce.Image.html#juce.Image.PixelFormat">juce.Image.PixelFormat</a></span>
  136. </li>
  137. <li><span class="parameter">imageWidth</span>
  138. </li>
  139. <li><span class="parameter">imageHeight</span>
  140. </li>
  141. <li><span class="parameter">clearImage</span>
  142. <span class="types"><span class="type">boolean</span></span>
  143. fill the image with black
  144. </li>
  145. </ul>
  146. </dd>
  147. </dl>
  148. <h2><a name="Methods"></a>Methods</h2>
  149. <dl class="function">
  150. <dt>
  151. <a name = "juce.Image:isValid"></a>
  152. <strong><span class="proto_prefix">juce.Image</span>:isValid ()</strong>
  153. </dt>
  154. <dd>
  155. Check Image validity.
  156. </ul>
  157. <h3>Returns:</h3>
  158. <ol>
  159. <span class="types"><span class="type">boolean</span></span>
  160. whether the image is valid and can be used.
  161. </ol>
  162. </dd>
  163. </dl>
  164. <h2><a name="Tables"></a>Tables</h2>
  165. <dl class="function">
  166. <dt>
  167. <a name = "juce.Image.PixelFormat"></a>
  168. <strong><span class="proto_prefix">juce.Image</span>.PixelFormat</strong>
  169. </dt>
  170. <dd>
  171. Pixel formats.
  172. </ul>
  173. <h3>Fields:</h3>
  174. <ul>
  175. <li><span class="parameter">UnknownFormat</span>
  176. 0
  177. </li>
  178. <li><span class="parameter">RGB</span>
  179. 1
  180. </li>
  181. <li><span class="parameter">ARGB</span>
  182. 2
  183. </li>
  184. <li><span class="parameter">SingleChannel</span>
  185. 3
  186. </li>
  187. </ul>
  188. </dd>
  189. </dl>
  190. </div> <!-- id="content" -->
  191. </div> <!-- id="main" -->
  192. <div id="about">
  193. <i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.2</a></i>
  194. </div> <!-- id="about" -->
  195. </div> <!-- id="container" -->
  196. </body>
  197. </html>