chillerlan-QRCode-Decoder-IMagickLuminanceSource.html 51 KB

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