chillerlan-QRCode-Decoder-GDLuminanceSource.html 51 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Documentation</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7. <base href="../">
  8. <link rel="icon" href="images/favicon.ico"/>
  9. <link rel="stylesheet" href="css/normalize.css">
  10. <link rel="stylesheet" href="css/base.css">
  11. <link rel="preconnect" href="https://fonts.gstatic.com">
  12. <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  13. <link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@400;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="css/template.css">
  15. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0/css/all.min.css" integrity="sha256-ybRkN9dBjhcS2qrW1z+hfCxq+1aBdwyQM5wlQoQVt/0=" crossorigin="anonymous" />
  16. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/themes/prism-okaidia.css">
  17. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.css">
  18. <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.css">
  19. <script src="https://cdn.jsdelivr.net/npm/fuse.js@3.4.6"></script>
  20. <script src="https://cdn.jsdelivr.net/npm/css-vars-ponyfill@2"></script>
  21. <script src="js/search.js"></script>
  22. <script defer src="js/searchIndex.js"></script>
  23. </head>
  24. <body id="top">
  25. <header class="phpdocumentor-header phpdocumentor-section">
  26. <h1 class="phpdocumentor-title"><a href="" class="phpdocumentor-title__link">Documentation</a></h1>
  27. <input class="phpdocumentor-header__menu-button" type="checkbox" id="menu-button" name="menu-button" />
  28. <label class="phpdocumentor-header__menu-icon" for="menu-button">
  29. <i class="fas fa-bars"></i>
  30. </label>
  31. <section data-search-form class="phpdocumentor-search">
  32. <label>
  33. <span class="visually-hidden">Search for</span>
  34. <svg class="phpdocumentor-search__icon" width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="http://www.w3.org/2000/svg">
  35. <circle cx="7.5" cy="7.5" r="6.5" stroke="currentColor" stroke-width="2"/>
  36. <line x1="12.4892" y1="12.2727" x2="19.1559" y2="18.9393" stroke="currentColor" stroke-width="3"/>
  37. </svg>
  38. <input type="search" class="phpdocumentor-field phpdocumentor-search__field" placeholder="Loading .." disabled />
  39. </label>
  40. </section>
  41. <nav class="phpdocumentor-topnav">
  42. <ul class="phpdocumentor-topnav__menu">
  43. </ul>
  44. </nav>
  45. </header>
  46. <main class="phpdocumentor">
  47. <div class="phpdocumentor-section">
  48. <input class="phpdocumentor-sidebar__menu-button" type="checkbox" id="sidebar-button" name="sidebar-button" />
  49. <label class="phpdocumentor-sidebar__menu-icon" for="sidebar-button">
  50. Menu
  51. </label>
  52. <aside class="phpdocumentor-column -four phpdocumentor-sidebar">
  53. <section class="phpdocumentor-sidebar__category">
  54. <h2 class="phpdocumentor-sidebar__category-header">Namespaces</h2>
  55. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="namespaces/chillerlan.html">chillerlan</a></h4>
  56. <ul class="phpdocumentor-list">
  57. <li>
  58. <a href="namespaces/chillerlan-qrcode.html">QRCode</a>
  59. </li>
  60. <li>
  61. <a href="namespaces/chillerlan-qrcodetest.html">QRCodeTest</a>
  62. </li>
  63. </ul>
  64. </section>
  65. <section class="phpdocumentor-sidebar__category">
  66. <h2 class="phpdocumentor-sidebar__category-header">Packages</h2>
  67. <h4 class="phpdocumentor-sidebar__root-namespace"><a href="packages/Application.html">Application</a></h4>
  68. </section>
  69. <section class="phpdocumentor-sidebar__category">
  70. <h2 class="phpdocumentor-sidebar__category-header">Reports</h2>
  71. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/deprecated.html">Deprecated</a></h3>
  72. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/errors.html">Errors</a></h3>
  73. <h3 class="phpdocumentor-sidebar__root-package"><a href="reports/markers.html">Markers</a></h3>
  74. </section>
  75. <section class="phpdocumentor-sidebar__category">
  76. <h2 class="phpdocumentor-sidebar__category-header">Indices</h2>
  77. <h3 class="phpdocumentor-sidebar__root-package"><a href="indices/files.html">Files</a></h3>
  78. </section>
  79. </aside>
  80. <div class="phpdocumentor-column -eight phpdocumentor-content">
  81. <ul class="phpdocumentor-breadcrumbs">
  82. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan.html">chillerlan</a></li>
  83. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode.html">QRCode</a></li>
  84. <li class="phpdocumentor-breadcrumb"><a href="namespaces/chillerlan-qrcode-decoder.html">Decoder</a></li>
  85. </ul>
  86. <article class="phpdocumentor-element -class">
  87. <h2 class="phpdocumentor-content__title">
  88. GDLuminanceSource
  89. <span class="phpdocumentor-element__extends">
  90. extends <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html"><abbr title="\chillerlan\QRCode\Decoder\LuminanceSourceAbstract">LuminanceSourceAbstract</abbr></a>
  91. </span>
  92. <div class="phpdocumentor-element__package">
  93. in package
  94. <ul class="phpdocumentor-breadcrumbs">
  95. <li class="phpdocumentor-breadcrumb"><a href="packages/Application.html">Application</a></li>
  96. </ul>
  97. </div>
  98. </h2>
  99. <aside class="phpdocumentor-element-found-in">
  100. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  101. :
  102. <span class="phpdocumentor-element-found-in__line">25</span>
  103. </aside>
  104. <p class="phpdocumentor-summary">This class is used to help decode images from files which arrive as GD Resource
  105. It does not support rotation.</p>
  106. <h3 id="toc">
  107. Table of Contents
  108. <a href="#toc" class="headerlink"><i class="fas fa-link"></i></a>
  109. </h3>
  110. <dl class="phpdocumentor-table-of-contents">
  111. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  112. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_height">$height</a>
  113. <span>
  114. &nbsp;: int </span>
  115. </dt>
  116. <dd></dd>
  117. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  118. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_luminances">$luminances</a>
  119. <span>
  120. &nbsp;: array&lt;string|int, mixed&gt; </span>
  121. </dt>
  122. <dd></dd>
  123. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  124. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_options">$options</a>
  125. <span>
  126. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr> </span>
  127. </dt>
  128. <dd></dd>
  129. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  130. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_width">$width</a>
  131. <span>
  132. &nbsp;: int </span>
  133. </dt>
  134. <dd></dd>
  135. <dt class="phpdocumentor-table-of-contents__entry -property -private">
  136. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#property_gdImage">$gdImage</a>
  137. <span>
  138. &nbsp;: resource|<abbr title="\GdImage">GdImage</abbr> </span>
  139. </dt>
  140. <dd></dd>
  141. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  142. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method___construct">__construct()</a>
  143. <span>
  144. &nbsp;: mixed </span>
  145. </dt>
  146. <dd>GDLuminanceSource constructor.</dd>
  147. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  148. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromBlob">fromBlob()</a>
  149. <span>
  150. &nbsp;: self </span>
  151. </dt>
  152. <dd></dd>
  153. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  154. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromFile">fromFile()</a>
  155. <span>
  156. &nbsp;: self </span>
  157. </dt>
  158. <dd></dd>
  159. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  160. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getHeight">getHeight()</a>
  161. <span>
  162. &nbsp;: int </span>
  163. </dt>
  164. <dd></dd>
  165. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  166. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getMatrix">getMatrix()</a>
  167. <span>
  168. &nbsp;: array&lt;string|int, mixed&gt; </span>
  169. </dt>
  170. <dd>Fetches luminance data for the underlying bitmap. Values should be fetched using:
  171. `int luminance = array[y * width + x] &amp; 0xff`</dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  173. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getRow">getRow()</a>
  174. <span>
  175. &nbsp;: array&lt;string|int, mixed&gt; </span>
  176. </dt>
  177. <dd>Fetches one row of luminance data from the underlying platform&#039;s bitmap. Values range from
  178. 0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
  179. to bitwise and with 0xff for each value. It is preferable for implementations of this method
  180. to only fetch this row rather than the whole image, since no 2D Readers may be installed and
  181. getMatrix() may never be called.</dd>
  182. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  183. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getWidth">getWidth()</a>
  184. <span>
  185. &nbsp;: int </span>
  186. </dt>
  187. <dd></dd>
  188. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  189. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_checkFile">checkFile()</a>
  190. <span>
  191. &nbsp;: string </span>
  192. </dt>
  193. <dd></dd>
  194. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  195. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_setLuminancePixel">setLuminancePixel()</a>
  196. <span>
  197. &nbsp;: void </span>
  198. </dt>
  199. <dd></dd>
  200. <dt class="phpdocumentor-table-of-contents__entry -method -private">
  201. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_setLuminancePixels">setLuminancePixels()</a>
  202. <span>
  203. &nbsp;: void </span>
  204. </dt>
  205. <dd></dd>
  206. </dl>
  207. <section class="phpdocumentor-properties">
  208. <h3 class="phpdocumentor-elements__header" id="properties">
  209. Properties
  210. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  211. </h3>
  212. <article
  213. class="
  214. phpdocumentor-element
  215. -property
  216. -protected
  217. "
  218. >
  219. <h4 class="phpdocumentor-element__name" id="property_height">
  220. $height
  221. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_height" class="headerlink"><i class="fas fa-link"></i></a>
  222. <span class="phpdocumentor-element__modifiers">
  223. </span>
  224. </h4>
  225. <aside class="phpdocumentor-element-found-in">
  226. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  227. :
  228. <span class="phpdocumentor-element-found-in__line">33</span>
  229. </aside>
  230. <code class="phpdocumentor-code phpdocumentor-signature ">
  231. <span class="phpdocumentor-signature__visibility">protected</span>
  232. <span class="phpdocumentor-signature__type">int</span>
  233. <span class="phpdocumentor-signature__name">$height</span>
  234. </code>
  235. <section class="phpdocumentor-description"></section>
  236. <section class="phpdocumentor-description"></section>
  237. </article>
  238. <article
  239. class="
  240. phpdocumentor-element
  241. -property
  242. -protected
  243. "
  244. >
  245. <h4 class="phpdocumentor-element__name" id="property_luminances">
  246. $luminances
  247. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_luminances" class="headerlink"><i class="fas fa-link"></i></a>
  248. <span class="phpdocumentor-element__modifiers">
  249. </span>
  250. </h4>
  251. <aside class="phpdocumentor-element-found-in">
  252. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  253. :
  254. <span class="phpdocumentor-element-found-in__line">31</span>
  255. </aside>
  256. <code class="phpdocumentor-code phpdocumentor-signature ">
  257. <span class="phpdocumentor-signature__visibility">protected</span>
  258. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  259. <span class="phpdocumentor-signature__name">$luminances</span>
  260. </code>
  261. <section class="phpdocumentor-description"></section>
  262. <section class="phpdocumentor-description"></section>
  263. </article>
  264. <article
  265. class="
  266. phpdocumentor-element
  267. -property
  268. -protected
  269. "
  270. >
  271. <h4 class="phpdocumentor-element__name" id="property_options">
  272. $options
  273. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  274. <span class="phpdocumentor-element__modifiers">
  275. </span>
  276. </h4>
  277. <aside class="phpdocumentor-element-found-in">
  278. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  279. :
  280. <span class="phpdocumentor-element-found-in__line">30</span>
  281. </aside>
  282. <code class="phpdocumentor-code phpdocumentor-signature ">
  283. <span class="phpdocumentor-signature__visibility">protected</span>
  284. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  285. <span class="phpdocumentor-signature__name">$options</span>
  286. </code>
  287. </article>
  288. <article
  289. class="
  290. phpdocumentor-element
  291. -property
  292. -protected
  293. "
  294. >
  295. <h4 class="phpdocumentor-element__name" id="property_width">
  296. $width
  297. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_width" class="headerlink"><i class="fas fa-link"></i></a>
  298. <span class="phpdocumentor-element__modifiers">
  299. </span>
  300. </h4>
  301. <aside class="phpdocumentor-element-found-in">
  302. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  303. :
  304. <span class="phpdocumentor-element-found-in__line">32</span>
  305. </aside>
  306. <code class="phpdocumentor-code phpdocumentor-signature ">
  307. <span class="phpdocumentor-signature__visibility">protected</span>
  308. <span class="phpdocumentor-signature__type">int</span>
  309. <span class="phpdocumentor-signature__name">$width</span>
  310. </code>
  311. <section class="phpdocumentor-description"></section>
  312. <section class="phpdocumentor-description"></section>
  313. </article>
  314. <article
  315. class="
  316. phpdocumentor-element
  317. -property
  318. -private
  319. "
  320. >
  321. <h4 class="phpdocumentor-element__name" id="property_gdImage">
  322. $gdImage
  323. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#property_gdImage" class="headerlink"><i class="fas fa-link"></i></a>
  324. <span class="phpdocumentor-element__modifiers">
  325. </span>
  326. </h4>
  327. <aside class="phpdocumentor-element-found-in">
  328. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  329. :
  330. <span class="phpdocumentor-element-found-in__line">30</span>
  331. </aside>
  332. <code class="phpdocumentor-code phpdocumentor-signature ">
  333. <span class="phpdocumentor-signature__visibility">private</span>
  334. <span class="phpdocumentor-signature__type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  335. <span class="phpdocumentor-signature__name">$gdImage</span>
  336. </code>
  337. </article>
  338. </section>
  339. <section class="phpdocumentor-methods">
  340. <h3 class="phpdocumentor-elements__header" id="methods">
  341. Methods
  342. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  343. </h3>
  344. <article
  345. class="phpdocumentor-element
  346. -method
  347. -public
  348. "
  349. >
  350. <h4 class="phpdocumentor-element__name" id="method___construct">
  351. __construct()
  352. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  353. </h4>
  354. <aside class="phpdocumentor-element-found-in">
  355. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  356. :
  357. <span class="phpdocumentor-element-found-in__line">39</span>
  358. </aside>
  359. <p class="phpdocumentor-summary">GDLuminanceSource constructor.</p>
  360. <code class="phpdocumentor-code phpdocumentor-signature ">
  361. <span class="phpdocumentor-signature__visibility">public</span>
  362. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">resource|<abbr title="\GdImage">GdImage</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$gdImage</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  363. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  364. <dl class="phpdocumentor-argument-list">
  365. <dt class="phpdocumentor-argument-list__entry">
  366. <span class="phpdocumentor-signature__argument__name">$gdImage</span>
  367. : <span class="phpdocumentor-signature__argument__return-type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  368. </dt>
  369. <dd class="phpdocumentor-argument-list__definition">
  370. </dd>
  371. <dt class="phpdocumentor-argument-list__entry">
  372. <span class="phpdocumentor-signature__argument__name">$options</span>
  373. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  374. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  375. <dd class="phpdocumentor-argument-list__definition">
  376. <section class="phpdocumentor-description"></section>
  377. </dd>
  378. </dl>
  379. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  380. Tags
  381. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  382. </h5>
  383. <dl class="phpdocumentor-tag-list">
  384. <dt class="phpdocumentor-tag-list__entry">
  385. <span class="phpdocumentor-tag__name">throws</span>
  386. </dt>
  387. <dd class="phpdocumentor-tag-list__definition">
  388. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  389. </dd>
  390. </dl>
  391. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  392. <span class="phpdocumentor-signature__response_type">mixed</span>
  393. &mdash;
  394. </article>
  395. <article
  396. class="phpdocumentor-element
  397. -method
  398. -public
  399. -static "
  400. >
  401. <h4 class="phpdocumentor-element__name" id="method_fromBlob">
  402. fromBlob()
  403. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromBlob" class="headerlink"><i class="fas fa-link"></i></a>
  404. </h4>
  405. <aside class="phpdocumentor-element-found-in">
  406. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  407. :
  408. <span class="phpdocumentor-element-found-in__line">87</span>
  409. </aside>
  410. <code class="phpdocumentor-code phpdocumentor-signature ">
  411. <span class="phpdocumentor-signature__visibility">public</span>
  412. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">fromBlob</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$blob</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  413. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  414. <dl class="phpdocumentor-argument-list">
  415. <dt class="phpdocumentor-argument-list__entry">
  416. <span class="phpdocumentor-signature__argument__name">$blob</span>
  417. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  418. </dt>
  419. <dd class="phpdocumentor-argument-list__definition">
  420. <section class="phpdocumentor-description"></section>
  421. </dd>
  422. <dt class="phpdocumentor-argument-list__entry">
  423. <span class="phpdocumentor-signature__argument__name">$options</span>
  424. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  425. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  426. <dd class="phpdocumentor-argument-list__definition">
  427. <section class="phpdocumentor-description"></section>
  428. </dd>
  429. </dl>
  430. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  431. Tags
  432. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  433. </h5>
  434. <dl class="phpdocumentor-tag-list">
  435. <dt class="phpdocumentor-tag-list__entry">
  436. <span class="phpdocumentor-tag__name">inheritDoc</span>
  437. </dt>
  438. <dd class="phpdocumentor-tag-list__definition">
  439. </dd>
  440. </dl>
  441. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  442. <span class="phpdocumentor-signature__response_type">self</span>
  443. &mdash;
  444. </article>
  445. <article
  446. class="phpdocumentor-element
  447. -method
  448. -public
  449. -static "
  450. >
  451. <h4 class="phpdocumentor-element__name" id="method_fromFile">
  452. fromFile()
  453. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromFile" class="headerlink"><i class="fas fa-link"></i></a>
  454. </h4>
  455. <aside class="phpdocumentor-element-found-in">
  456. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  457. :
  458. <span class="phpdocumentor-element-found-in__line">82</span>
  459. </aside>
  460. <code class="phpdocumentor-code phpdocumentor-signature ">
  461. <span class="phpdocumentor-signature__visibility">public</span>
  462. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">fromFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$options</span><span> = </span><span class="phpdocumentor-signature__argument__default-value">null</span><span> ]</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">self</span></code>
  463. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  464. <dl class="phpdocumentor-argument-list">
  465. <dt class="phpdocumentor-argument-list__entry">
  466. <span class="phpdocumentor-signature__argument__name">$path</span>
  467. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  468. </dt>
  469. <dd class="phpdocumentor-argument-list__definition">
  470. <section class="phpdocumentor-description"></section>
  471. </dd>
  472. <dt class="phpdocumentor-argument-list__entry">
  473. <span class="phpdocumentor-signature__argument__name">$options</span>
  474. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  475. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  476. <dd class="phpdocumentor-argument-list__definition">
  477. <section class="phpdocumentor-description"></section>
  478. </dd>
  479. </dl>
  480. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  481. Tags
  482. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  483. </h5>
  484. <dl class="phpdocumentor-tag-list">
  485. <dt class="phpdocumentor-tag-list__entry">
  486. <span class="phpdocumentor-tag__name">inheritDoc</span>
  487. </dt>
  488. <dd class="phpdocumentor-tag-list__definition">
  489. </dd>
  490. </dl>
  491. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  492. <span class="phpdocumentor-signature__response_type">self</span>
  493. &mdash;
  494. </article>
  495. <article
  496. class="phpdocumentor-element
  497. -method
  498. -public
  499. "
  500. >
  501. <h4 class="phpdocumentor-element__name" id="method_getHeight">
  502. getHeight()
  503. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getHeight" class="headerlink"><i class="fas fa-link"></i></a>
  504. </h4>
  505. <aside class="phpdocumentor-element-found-in">
  506. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  507. :
  508. <span class="phpdocumentor-element-found-in__line">57</span>
  509. </aside>
  510. <code class="phpdocumentor-code phpdocumentor-signature ">
  511. <span class="phpdocumentor-signature__visibility">public</span>
  512. <span class="phpdocumentor-signature__name">getHeight</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  513. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  514. Tags
  515. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  516. </h5>
  517. <dl class="phpdocumentor-tag-list">
  518. <dt class="phpdocumentor-tag-list__entry">
  519. <span class="phpdocumentor-tag__name">inheritDoc</span>
  520. </dt>
  521. <dd class="phpdocumentor-tag-list__definition">
  522. </dd>
  523. </dl>
  524. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  525. <span class="phpdocumentor-signature__response_type">int</span>
  526. &mdash;
  527. <section class="phpdocumentor-description"><p>The height of the bitmap.</p>
  528. </section>
  529. </article>
  530. <article
  531. class="phpdocumentor-element
  532. -method
  533. -public
  534. "
  535. >
  536. <h4 class="phpdocumentor-element__name" id="method_getMatrix">
  537. getMatrix()
  538. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getMatrix" class="headerlink"><i class="fas fa-link"></i></a>
  539. </h4>
  540. <aside class="phpdocumentor-element-found-in">
  541. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  542. :
  543. <span class="phpdocumentor-element-found-in__line">47</span>
  544. </aside>
  545. <p class="phpdocumentor-summary">Fetches luminance data for the underlying bitmap. Values should be fetched using:
  546. `int luminance = array[y * width + x] &amp; 0xff`</p>
  547. <code class="phpdocumentor-code phpdocumentor-signature ">
  548. <span class="phpdocumentor-signature__visibility">public</span>
  549. <span class="phpdocumentor-signature__name">getMatrix</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  550. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  551. Tags
  552. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  553. </h5>
  554. <dl class="phpdocumentor-tag-list">
  555. <dt class="phpdocumentor-tag-list__entry">
  556. <span class="phpdocumentor-tag__name">inheritDoc</span>
  557. </dt>
  558. <dd class="phpdocumentor-tag-list__definition">
  559. </dd>
  560. </dl>
  561. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  562. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  563. &mdash;
  564. <section class="phpdocumentor-description"><p>A row-major 2D array of luminance values. Do not use result.length as it may be
  565. larger than width * height bytes on some platforms. Do not modify the contents
  566. of the result.</p>
  567. </section>
  568. </article>
  569. <article
  570. class="phpdocumentor-element
  571. -method
  572. -public
  573. "
  574. >
  575. <h4 class="phpdocumentor-element__name" id="method_getRow">
  576. getRow()
  577. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getRow" class="headerlink"><i class="fas fa-link"></i></a>
  578. </h4>
  579. <aside class="phpdocumentor-element-found-in">
  580. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  581. :
  582. <span class="phpdocumentor-element-found-in__line">62</span>
  583. </aside>
  584. <p class="phpdocumentor-summary">Fetches one row of luminance data from the underlying platform&#039;s bitmap. Values range from
  585. 0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
  586. to bitwise and with 0xff for each value. It is preferable for implementations of this method
  587. to only fetch this row rather than the whole image, since no 2D Readers may be installed and
  588. getMatrix() may never be called.</p>
  589. <code class="phpdocumentor-code phpdocumentor-signature ">
  590. <span class="phpdocumentor-signature__visibility">public</span>
  591. <span class="phpdocumentor-signature__name">getRow</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  592. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  593. <dl class="phpdocumentor-argument-list">
  594. <dt class="phpdocumentor-argument-list__entry">
  595. <span class="phpdocumentor-signature__argument__name">$y</span>
  596. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  597. </dt>
  598. <dd class="phpdocumentor-argument-list__definition">
  599. <section class="phpdocumentor-description"><p>The row to fetch, which must be in [0,getHeight())</p>
  600. </section>
  601. </dd>
  602. </dl>
  603. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  604. Tags
  605. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  606. </h5>
  607. <dl class="phpdocumentor-tag-list">
  608. <dt class="phpdocumentor-tag-list__entry">
  609. <span class="phpdocumentor-tag__name">inheritDoc</span>
  610. </dt>
  611. <dd class="phpdocumentor-tag-list__definition">
  612. </dd>
  613. </dl>
  614. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  615. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  616. &mdash;
  617. <section class="phpdocumentor-description"><p>An array containing the luminance data.</p>
  618. </section>
  619. </article>
  620. <article
  621. class="phpdocumentor-element
  622. -method
  623. -public
  624. "
  625. >
  626. <h4 class="phpdocumentor-element__name" id="method_getWidth">
  627. getWidth()
  628. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getWidth" class="headerlink"><i class="fas fa-link"></i></a>
  629. </h4>
  630. <aside class="phpdocumentor-element-found-in">
  631. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  632. :
  633. <span class="phpdocumentor-element-found-in__line">52</span>
  634. </aside>
  635. <code class="phpdocumentor-code phpdocumentor-signature ">
  636. <span class="phpdocumentor-signature__visibility">public</span>
  637. <span class="phpdocumentor-signature__name">getWidth</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  638. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  639. Tags
  640. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  641. </h5>
  642. <dl class="phpdocumentor-tag-list">
  643. <dt class="phpdocumentor-tag-list__entry">
  644. <span class="phpdocumentor-tag__name">inheritDoc</span>
  645. </dt>
  646. <dd class="phpdocumentor-tag-list__definition">
  647. </dd>
  648. </dl>
  649. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  650. <span class="phpdocumentor-signature__response_type">int</span>
  651. &mdash;
  652. <section class="phpdocumentor-description"><p>The width of the bitmap.</p>
  653. </section>
  654. </article>
  655. <article
  656. class="phpdocumentor-element
  657. -method
  658. -protected
  659. -static "
  660. >
  661. <h4 class="phpdocumentor-element__name" id="method_checkFile">
  662. checkFile()
  663. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_checkFile" class="headerlink"><i class="fas fa-link"></i></a>
  664. </h4>
  665. <aside class="phpdocumentor-element-found-in">
  666. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  667. :
  668. <span class="phpdocumentor-element-found-in__line">89</span>
  669. </aside>
  670. <code class="phpdocumentor-code phpdocumentor-signature ">
  671. <span class="phpdocumentor-signature__visibility">protected</span>
  672. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">checkFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$path</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  673. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  674. <dl class="phpdocumentor-argument-list">
  675. <dt class="phpdocumentor-argument-list__entry">
  676. <span class="phpdocumentor-signature__argument__name">$path</span>
  677. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  678. </dt>
  679. <dd class="phpdocumentor-argument-list__definition">
  680. <section class="phpdocumentor-description"></section>
  681. </dd>
  682. </dl>
  683. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  684. Tags
  685. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  686. </h5>
  687. <dl class="phpdocumentor-tag-list">
  688. <dt class="phpdocumentor-tag-list__entry">
  689. <span class="phpdocumentor-tag__name">throws</span>
  690. </dt>
  691. <dd class="phpdocumentor-tag-list__definition">
  692. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  693. </dd>
  694. </dl>
  695. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  696. <span class="phpdocumentor-signature__response_type">string</span>
  697. &mdash;
  698. </article>
  699. <article
  700. class="phpdocumentor-element
  701. -method
  702. -protected
  703. "
  704. >
  705. <h4 class="phpdocumentor-element__name" id="method_setLuminancePixel">
  706. setLuminancePixel()
  707. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_setLuminancePixel" class="headerlink"><i class="fas fa-link"></i></a>
  708. </h4>
  709. <aside class="phpdocumentor-element-found-in">
  710. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/LuminanceSourceAbstract.php">LuminanceSourceAbstract.php</abbr></a></abbr>
  711. :
  712. <span class="phpdocumentor-element-found-in__line">78</span>
  713. </aside>
  714. <code class="phpdocumentor-code phpdocumentor-signature ">
  715. <span class="phpdocumentor-signature__visibility">protected</span>
  716. <span class="phpdocumentor-signature__name">setLuminancePixel</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$r</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$g</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$b</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  717. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  718. <dl class="phpdocumentor-argument-list">
  719. <dt class="phpdocumentor-argument-list__entry">
  720. <span class="phpdocumentor-signature__argument__name">$r</span>
  721. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  722. </dt>
  723. <dd class="phpdocumentor-argument-list__definition">
  724. <section class="phpdocumentor-description"></section>
  725. </dd>
  726. <dt class="phpdocumentor-argument-list__entry">
  727. <span class="phpdocumentor-signature__argument__name">$g</span>
  728. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  729. </dt>
  730. <dd class="phpdocumentor-argument-list__definition">
  731. <section class="phpdocumentor-description"></section>
  732. </dd>
  733. <dt class="phpdocumentor-argument-list__entry">
  734. <span class="phpdocumentor-signature__argument__name">$b</span>
  735. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  736. </dt>
  737. <dd class="phpdocumentor-argument-list__definition">
  738. <section class="phpdocumentor-description"></section>
  739. </dd>
  740. </dl>
  741. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  742. <span class="phpdocumentor-signature__response_type">void</span>
  743. &mdash;
  744. </article>
  745. <article
  746. class="phpdocumentor-element
  747. -method
  748. -private
  749. "
  750. >
  751. <h4 class="phpdocumentor-element__name" id="method_setLuminancePixels">
  752. setLuminancePixels()
  753. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_setLuminancePixels" class="headerlink"><i class="fas fa-link"></i></a>
  754. </h4>
  755. <aside class="phpdocumentor-element-found-in">
  756. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  757. :
  758. <span class="phpdocumentor-element-found-in__line">59</span>
  759. </aside>
  760. <code class="phpdocumentor-code phpdocumentor-signature ">
  761. <span class="phpdocumentor-signature__visibility">private</span>
  762. <span class="phpdocumentor-signature__name">setLuminancePixels</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  763. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  764. <span class="phpdocumentor-signature__response_type">void</span>
  765. &mdash;
  766. </article>
  767. </section>
  768. <script type="text/javascript">
  769. function loadExternalCodeSnippets(line) {
  770. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  771. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  772. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  773. var language = 'php';
  774. var code = document.createElement('code');
  775. code.className = 'language-' + language;
  776. pre.textContent = '';
  777. pre.setAttribute('data-line', line)
  778. code.textContent = 'Loading…';
  779. pre.appendChild(code);
  780. var xhr = new XMLHttpRequest();
  781. xhr.open('GET', src, true);
  782. xhr.onreadystatechange = function () {
  783. if (xhr.readyState == 4) {
  784. if (xhr.status < 400 && xhr.responseText) {
  785. code.textContent = xhr.responseText;
  786. Prism.highlightElement(code);
  787. }
  788. else if (xhr.status >= 400) {
  789. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  790. }
  791. else {
  792. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  793. }
  794. }
  795. };
  796. xhr.send(null);
  797. });
  798. }
  799. var modals = document.querySelectorAll("[data-modal]");
  800. modals.forEach(function (trigger) {
  801. trigger.addEventListener("click", function (event) {
  802. //event.preventDefault();
  803. const modal = document.getElementById(trigger.dataset.modal);
  804. modal.classList.add("phpdocumentor-modal__open");
  805. loadExternalCodeSnippets(trigger.dataset.line)
  806. const exits = modal.querySelectorAll("[data-exit-button]");
  807. exits.forEach(function (exit) {
  808. exit.addEventListener("click", function (event) {
  809. event.preventDefault();
  810. modal.classList.remove("phpdocumentor-modal__open");
  811. });
  812. });
  813. });
  814. });
  815. </script>
  816. </article>
  817. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  818. <section class="phpdocumentor-search-results__dialog">
  819. <header class="phpdocumentor-search-results__header">
  820. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  821. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  822. </header>
  823. <section class="phpdocumentor-search-results__body">
  824. <ul class="phpdocumentor-search-results__entries"></ul>
  825. </section>
  826. </section>
  827. </section>
  828. </div>
  829. </div>
  830. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  831. </main>
  832. <script>
  833. cssVars({});
  834. </script>
  835. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  836. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  837. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  838. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  839. </body>
  840. </html>