chillerlan-QRCode-Common-IMagickLuminanceSource.html 59 KB

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