chillerlan-QRCode-Decoder-GDLuminanceSource.html 52 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092
  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. GDLuminanceSource
  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/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  119. :
  120. <span class="phpdocumentor-element-found-in__line">25</span>
  121. </aside>
  122. <p class="phpdocumentor-summary">This class is used to help decode images from files which arrive as GD 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-GDLuminanceSource.html#property_gdImage">$gdImage</a>
  131. <span>
  132. &nbsp;: resource|<abbr title="\GdImage">GdImage</abbr> </span>
  133. </dt>
  134. <dd></dd>
  135. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  136. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_height">$height</a>
  137. <span>
  138. &nbsp;: int </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-GDLuminanceSource.html#method___construct">__construct()</a>
  161. <span>
  162. &nbsp;: mixed </span>
  163. </dt>
  164. <dd>GDLuminanceSource constructor.</dd>
  165. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  166. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.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-GDLuminanceSource.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-GDLuminanceSource.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-GDLuminanceSource.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_gdImage">
  238. $gdImage
  239. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#property_gdImage" 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/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  245. :
  246. <span class="phpdocumentor-element-found-in__line">30</span>
  247. </aside>
  248. <code class="phpdocumentor-code phpdocumentor-signature ">
  249. <span class="phpdocumentor-signature__visibility">protected</span>
  250. <span class="phpdocumentor-signature__type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  251. <span class="phpdocumentor-signature__name">$gdImage</span>
  252. </code>
  253. </article>
  254. <article
  255. class="
  256. phpdocumentor-element
  257. -property
  258. -protected
  259. "
  260. >
  261. <h4 class="phpdocumentor-element__name" id="property_height">
  262. $height
  263. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_height" class="headerlink"><i class="fas fa-link"></i></a>
  264. <span class="phpdocumentor-element__modifiers">
  265. </span>
  266. </h4>
  267. <aside class="phpdocumentor-element-found-in">
  268. <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>
  269. :
  270. <span class="phpdocumentor-element-found-in__line">31</span>
  271. </aside>
  272. <code class="phpdocumentor-code phpdocumentor-signature ">
  273. <span class="phpdocumentor-signature__visibility">protected</span>
  274. <span class="phpdocumentor-signature__type">int</span>
  275. <span class="phpdocumentor-signature__name">$height</span>
  276. </code>
  277. <section class="phpdocumentor-description"></section>
  278. <section class="phpdocumentor-description"></section>
  279. </article>
  280. <article
  281. class="
  282. phpdocumentor-element
  283. -property
  284. -protected
  285. "
  286. >
  287. <h4 class="phpdocumentor-element__name" id="property_luminances">
  288. $luminances
  289. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_luminances" class="headerlink"><i class="fas fa-link"></i></a>
  290. <span class="phpdocumentor-element__modifiers">
  291. </span>
  292. </h4>
  293. <aside class="phpdocumentor-element-found-in">
  294. <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>
  295. :
  296. <span class="phpdocumentor-element-found-in__line">29</span>
  297. </aside>
  298. <code class="phpdocumentor-code phpdocumentor-signature ">
  299. <span class="phpdocumentor-signature__visibility">protected</span>
  300. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  301. <span class="phpdocumentor-signature__name">$luminances</span>
  302. </code>
  303. <section class="phpdocumentor-description"></section>
  304. <section class="phpdocumentor-description"></section>
  305. </article>
  306. <article
  307. class="
  308. phpdocumentor-element
  309. -property
  310. -protected
  311. "
  312. >
  313. <h4 class="phpdocumentor-element__name" id="property_options">
  314. $options
  315. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  316. <span class="phpdocumentor-element__modifiers">
  317. </span>
  318. </h4>
  319. <aside class="phpdocumentor-element-found-in">
  320. <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>
  321. :
  322. <span class="phpdocumentor-element-found-in__line">28</span>
  323. </aside>
  324. <code class="phpdocumentor-code phpdocumentor-signature ">
  325. <span class="phpdocumentor-signature__visibility">protected</span>
  326. <span class="phpdocumentor-signature__type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  327. <span class="phpdocumentor-signature__name">$options</span>
  328. </code>
  329. </article>
  330. <article
  331. class="
  332. phpdocumentor-element
  333. -property
  334. -protected
  335. "
  336. >
  337. <h4 class="phpdocumentor-element__name" id="property_width">
  338. $width
  339. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#property_width" class="headerlink"><i class="fas fa-link"></i></a>
  340. <span class="phpdocumentor-element__modifiers">
  341. </span>
  342. </h4>
  343. <aside class="phpdocumentor-element-found-in">
  344. <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>
  345. :
  346. <span class="phpdocumentor-element-found-in__line">30</span>
  347. </aside>
  348. <code class="phpdocumentor-code phpdocumentor-signature ">
  349. <span class="phpdocumentor-signature__visibility">protected</span>
  350. <span class="phpdocumentor-signature__type">int</span>
  351. <span class="phpdocumentor-signature__name">$width</span>
  352. </code>
  353. <section class="phpdocumentor-description"></section>
  354. <section class="phpdocumentor-description"></section>
  355. </article>
  356. </section>
  357. <section class="phpdocumentor-methods">
  358. <h3 class="phpdocumentor-elements__header" id="methods">
  359. Methods
  360. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  361. </h3>
  362. <article
  363. class="phpdocumentor-element
  364. -method
  365. -public
  366. "
  367. >
  368. <h4 class="phpdocumentor-element__name" id="method___construct">
  369. __construct()
  370. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  371. </h4>
  372. <aside class="phpdocumentor-element-found-in">
  373. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  374. :
  375. <span class="phpdocumentor-element-found-in__line">40</span>
  376. </aside>
  377. <p class="phpdocumentor-summary">GDLuminanceSource constructor.</p>
  378. <code class="phpdocumentor-code phpdocumentor-signature ">
  379. <span class="phpdocumentor-signature__visibility">public</span>
  380. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">resource|<abbr title="\GdImage">GdImage</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$gdImage</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|null&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>
  381. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  382. <dl class="phpdocumentor-argument-list">
  383. <dt class="phpdocumentor-argument-list__entry">
  384. <span class="phpdocumentor-signature__argument__name">$gdImage</span>
  385. : <span class="phpdocumentor-signature__argument__return-type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  386. </dt>
  387. <dd class="phpdocumentor-argument-list__definition">
  388. </dd>
  389. <dt class="phpdocumentor-argument-list__entry">
  390. <span class="phpdocumentor-signature__argument__name">$options</span>
  391. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|null</span>
  392. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  393. <dd class="phpdocumentor-argument-list__definition">
  394. </dd>
  395. </dl>
  396. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  397. Tags
  398. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  399. </h5>
  400. <dl class="phpdocumentor-tag-list">
  401. <dt class="phpdocumentor-tag-list__entry">
  402. <span class="phpdocumentor-tag__name">throws</span>
  403. </dt>
  404. <dd class="phpdocumentor-tag-list__definition">
  405. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  406. </dd>
  407. </dl>
  408. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  409. <span class="phpdocumentor-signature__response_type">mixed</span>
  410. &mdash;
  411. </article>
  412. <article
  413. class="phpdocumentor-element
  414. -method
  415. -public
  416. -static "
  417. >
  418. <h4 class="phpdocumentor-element__name" id="method_fromBlob">
  419. fromBlob()
  420. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromBlob" class="headerlink"><i class="fas fa-link"></i></a>
  421. </h4>
  422. <aside class="phpdocumentor-element-found-in">
  423. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  424. :
  425. <span class="phpdocumentor-element-found-in__line">88</span>
  426. </aside>
  427. <code class="phpdocumentor-code phpdocumentor-signature ">
  428. <span class="phpdocumentor-signature__visibility">public</span>
  429. <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>
  430. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  431. <dl class="phpdocumentor-argument-list">
  432. <dt class="phpdocumentor-argument-list__entry">
  433. <span class="phpdocumentor-signature__argument__name">$blob</span>
  434. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  435. </dt>
  436. <dd class="phpdocumentor-argument-list__definition">
  437. <section class="phpdocumentor-description"></section>
  438. </dd>
  439. <dt class="phpdocumentor-argument-list__entry">
  440. <span class="phpdocumentor-signature__argument__name">$options</span>
  441. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  442. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  443. <dd class="phpdocumentor-argument-list__definition">
  444. <section class="phpdocumentor-description"></section>
  445. </dd>
  446. </dl>
  447. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  448. Tags
  449. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  450. </h5>
  451. <dl class="phpdocumentor-tag-list">
  452. <dt class="phpdocumentor-tag-list__entry">
  453. <span class="phpdocumentor-tag__name">inheritDoc</span>
  454. </dt>
  455. <dd class="phpdocumentor-tag-list__definition">
  456. </dd>
  457. </dl>
  458. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  459. <span class="phpdocumentor-signature__response_type">self</span>
  460. &mdash;
  461. </article>
  462. <article
  463. class="phpdocumentor-element
  464. -method
  465. -public
  466. -static "
  467. >
  468. <h4 class="phpdocumentor-element__name" id="method_fromFile">
  469. fromFile()
  470. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_fromFile" class="headerlink"><i class="fas fa-link"></i></a>
  471. </h4>
  472. <aside class="phpdocumentor-element-found-in">
  473. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  474. :
  475. <span class="phpdocumentor-element-found-in__line">83</span>
  476. </aside>
  477. <code class="phpdocumentor-code phpdocumentor-signature ">
  478. <span class="phpdocumentor-signature__visibility">public</span>
  479. <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>
  480. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  481. <dl class="phpdocumentor-argument-list">
  482. <dt class="phpdocumentor-argument-list__entry">
  483. <span class="phpdocumentor-signature__argument__name">$path</span>
  484. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  485. </dt>
  486. <dd class="phpdocumentor-argument-list__definition">
  487. <section class="phpdocumentor-description"></section>
  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></span>
  492. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  493. <dd class="phpdocumentor-argument-list__definition">
  494. <section class="phpdocumentor-description"></section>
  495. </dd>
  496. </dl>
  497. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  498. Tags
  499. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  500. </h5>
  501. <dl class="phpdocumentor-tag-list">
  502. <dt class="phpdocumentor-tag-list__entry">
  503. <span class="phpdocumentor-tag__name">inheritDoc</span>
  504. </dt>
  505. <dd class="phpdocumentor-tag-list__definition">
  506. </dd>
  507. </dl>
  508. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  509. <span class="phpdocumentor-signature__response_type">self</span>
  510. &mdash;
  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-Decoder-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/Decoder/LuminanceSourceAbstract.php"><a href="files/src-decoder-luminancesourceabstract.html"><abbr title="src/Decoder/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. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  531. Tags
  532. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  533. </h5>
  534. <dl class="phpdocumentor-tag-list">
  535. <dt class="phpdocumentor-tag-list__entry">
  536. <span class="phpdocumentor-tag__name">inheritDoc</span>
  537. </dt>
  538. <dd class="phpdocumentor-tag-list__definition">
  539. </dd>
  540. </dl>
  541. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  542. <span class="phpdocumentor-signature__response_type">int</span>
  543. &mdash;
  544. <section class="phpdocumentor-description"><p>The height of the bitmap.</p>
  545. </section>
  546. </article>
  547. <article
  548. class="phpdocumentor-element
  549. -method
  550. -public
  551. "
  552. >
  553. <h4 class="phpdocumentor-element__name" id="method_getLuminances">
  554. getLuminances()
  555. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getLuminances" class="headerlink"><i class="fas fa-link"></i></a>
  556. </h4>
  557. <aside class="phpdocumentor-element-found-in">
  558. <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>
  559. :
  560. <span class="phpdocumentor-element-found-in__line">45</span>
  561. </aside>
  562. <p class="phpdocumentor-summary">Fetches luminance data for the underlying bitmap. Values should be fetched using:
  563. `int luminance = array[y * width + x] &amp; 0xff`</p>
  564. <code class="phpdocumentor-code phpdocumentor-signature ">
  565. <span class="phpdocumentor-signature__visibility">public</span>
  566. <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>
  567. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  568. Tags
  569. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  570. </h5>
  571. <dl class="phpdocumentor-tag-list">
  572. <dt class="phpdocumentor-tag-list__entry">
  573. <span class="phpdocumentor-tag__name">inheritDoc</span>
  574. </dt>
  575. <dd class="phpdocumentor-tag-list__definition">
  576. </dd>
  577. </dl>
  578. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  579. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  580. &mdash;
  581. <section class="phpdocumentor-description"><p>A row-major 2D array of luminance values. Do not use result $length as it may be
  582. larger than $width * $height bytes on some platforms. Do not modify the contents
  583. of the result.</p>
  584. </section>
  585. </article>
  586. <article
  587. class="phpdocumentor-element
  588. -method
  589. -public
  590. "
  591. >
  592. <h4 class="phpdocumentor-element__name" id="method_getRow">
  593. getRow()
  594. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getRow" class="headerlink"><i class="fas fa-link"></i></a>
  595. </h4>
  596. <aside class="phpdocumentor-element-found-in">
  597. <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>
  598. :
  599. <span class="phpdocumentor-element-found-in__line">60</span>
  600. </aside>
  601. <p class="phpdocumentor-summary">Fetches one row of luminance data from the underlying platform&#039;s bitmap. Values range from
  602. 0 (black) to 255 (white). Because Java does not have an unsigned byte type, callers will have
  603. to bitwise and with 0xff for each value. It is preferable for implementations of this method
  604. to only fetch this row rather than the whole image, since no 2D Readers may be installed and
  605. getLuminances() may never be called.</p>
  606. <code class="phpdocumentor-code phpdocumentor-signature ">
  607. <span class="phpdocumentor-signature__visibility">public</span>
  608. <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>
  609. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  610. <dl class="phpdocumentor-argument-list">
  611. <dt class="phpdocumentor-argument-list__entry">
  612. <span class="phpdocumentor-signature__argument__name">$y</span>
  613. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  614. </dt>
  615. <dd class="phpdocumentor-argument-list__definition">
  616. <section class="phpdocumentor-description"><p>The row to fetch, which must be in [0,getHeight())</p>
  617. </section>
  618. </dd>
  619. </dl>
  620. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  621. Tags
  622. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  623. </h5>
  624. <dl class="phpdocumentor-tag-list">
  625. <dt class="phpdocumentor-tag-list__entry">
  626. <span class="phpdocumentor-tag__name">inheritDoc</span>
  627. </dt>
  628. <dd class="phpdocumentor-tag-list__definition">
  629. </dd>
  630. </dl>
  631. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  632. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  633. &mdash;
  634. <section class="phpdocumentor-description"><p>An array containing the luminance data.</p>
  635. </section>
  636. </article>
  637. <article
  638. class="phpdocumentor-element
  639. -method
  640. -public
  641. "
  642. >
  643. <h4 class="phpdocumentor-element__name" id="method_getWidth">
  644. getWidth()
  645. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_getWidth" class="headerlink"><i class="fas fa-link"></i></a>
  646. </h4>
  647. <aside class="phpdocumentor-element-found-in">
  648. <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>
  649. :
  650. <span class="phpdocumentor-element-found-in__line">50</span>
  651. </aside>
  652. <code class="phpdocumentor-code phpdocumentor-signature ">
  653. <span class="phpdocumentor-signature__visibility">public</span>
  654. <span class="phpdocumentor-signature__name">getWidth</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">int</span></code>
  655. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  656. Tags
  657. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  658. </h5>
  659. <dl class="phpdocumentor-tag-list">
  660. <dt class="phpdocumentor-tag-list__entry">
  661. <span class="phpdocumentor-tag__name">inheritDoc</span>
  662. </dt>
  663. <dd class="phpdocumentor-tag-list__definition">
  664. </dd>
  665. </dl>
  666. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  667. <span class="phpdocumentor-signature__response_type">int</span>
  668. &mdash;
  669. <section class="phpdocumentor-description"><p>The width of the bitmap.</p>
  670. </section>
  671. </article>
  672. <article
  673. class="phpdocumentor-element
  674. -method
  675. -protected
  676. -static "
  677. >
  678. <h4 class="phpdocumentor-element__name" id="method_checkFile">
  679. checkFile()
  680. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_checkFile" class="headerlink"><i class="fas fa-link"></i></a>
  681. </h4>
  682. <aside class="phpdocumentor-element-found-in">
  683. <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>
  684. :
  685. <span class="phpdocumentor-element-found-in__line">87</span>
  686. </aside>
  687. <code class="phpdocumentor-code phpdocumentor-signature ">
  688. <span class="phpdocumentor-signature__visibility">protected</span>
  689. <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>
  690. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  691. <dl class="phpdocumentor-argument-list">
  692. <dt class="phpdocumentor-argument-list__entry">
  693. <span class="phpdocumentor-signature__argument__name">$path</span>
  694. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  695. </dt>
  696. <dd class="phpdocumentor-argument-list__definition">
  697. <section class="phpdocumentor-description"></section>
  698. </dd>
  699. </dl>
  700. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  701. Tags
  702. <a href="#tags" class="headerlink"><i class="fas fa-link"></i></a>
  703. </h5>
  704. <dl class="phpdocumentor-tag-list">
  705. <dt class="phpdocumentor-tag-list__entry">
  706. <span class="phpdocumentor-tag__name">throws</span>
  707. </dt>
  708. <dd class="phpdocumentor-tag-list__definition">
  709. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Decoder-QRCodeDecoderException.html"><abbr title="\chillerlan\QRCode\Decoder\QRCodeDecoderException">QRCodeDecoderException</abbr></a></span>
  710. </dd>
  711. </dl>
  712. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  713. <span class="phpdocumentor-signature__response_type">string</span>
  714. &mdash;
  715. </article>
  716. <article
  717. class="phpdocumentor-element
  718. -method
  719. -protected
  720. "
  721. >
  722. <h4 class="phpdocumentor-element__name" id="method_setLuminancePixel">
  723. setLuminancePixel()
  724. <a href="classes/chillerlan-QRCode-Decoder-LuminanceSourceAbstract.html#method_setLuminancePixel" class="headerlink"><i class="fas fa-link"></i></a>
  725. </h4>
  726. <aside class="phpdocumentor-element-found-in">
  727. <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>
  728. :
  729. <span class="phpdocumentor-element-found-in__line">76</span>
  730. </aside>
  731. <code class="phpdocumentor-code phpdocumentor-signature ">
  732. <span class="phpdocumentor-signature__visibility">protected</span>
  733. <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>
  734. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  735. <dl class="phpdocumentor-argument-list">
  736. <dt class="phpdocumentor-argument-list__entry">
  737. <span class="phpdocumentor-signature__argument__name">$r</span>
  738. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  739. </dt>
  740. <dd class="phpdocumentor-argument-list__definition">
  741. <section class="phpdocumentor-description"></section>
  742. </dd>
  743. <dt class="phpdocumentor-argument-list__entry">
  744. <span class="phpdocumentor-signature__argument__name">$g</span>
  745. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  746. </dt>
  747. <dd class="phpdocumentor-argument-list__definition">
  748. <section class="phpdocumentor-description"></section>
  749. </dd>
  750. <dt class="phpdocumentor-argument-list__entry">
  751. <span class="phpdocumentor-signature__argument__name">$b</span>
  752. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  753. </dt>
  754. <dd class="phpdocumentor-argument-list__definition">
  755. <section class="phpdocumentor-description"></section>
  756. </dd>
  757. </dl>
  758. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  759. <span class="phpdocumentor-signature__response_type">void</span>
  760. &mdash;
  761. </article>
  762. <article
  763. class="phpdocumentor-element
  764. -method
  765. -protected
  766. "
  767. >
  768. <h4 class="phpdocumentor-element__name" id="method_setLuminancePixels">
  769. setLuminancePixels()
  770. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#method_setLuminancePixels" class="headerlink"><i class="fas fa-link"></i></a>
  771. </h4>
  772. <aside class="phpdocumentor-element-found-in">
  773. <abbr class="phpdocumentor-element-found-in__file" title="src/Decoder/GDLuminanceSource.php"><a href="files/src-decoder-gdluminancesource.html"><abbr title="src/Decoder/GDLuminanceSource.php">GDLuminanceSource.php</abbr></a></abbr>
  774. :
  775. <span class="phpdocumentor-element-found-in__line">60</span>
  776. </aside>
  777. <code class="phpdocumentor-code phpdocumentor-signature ">
  778. <span class="phpdocumentor-signature__visibility">protected</span>
  779. <span class="phpdocumentor-signature__name">setLuminancePixels</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  780. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  781. <span class="phpdocumentor-signature__response_type">void</span>
  782. &mdash;
  783. </article>
  784. </section>
  785. <script type="text/javascript">
  786. function loadExternalCodeSnippets(line) {
  787. Array.prototype.slice.call(document.querySelectorAll('pre[data-src]')).forEach((pre) => {
  788. var src = pre.getAttribute('data-src').replace( /\\/g, '/');
  789. var extension = (src.match(/\.(\w+)$/) || [, ''])[1];
  790. var language = 'php';
  791. var code = document.createElement('code');
  792. code.className = 'language-' + language;
  793. pre.textContent = '';
  794. pre.setAttribute('data-line', line)
  795. code.textContent = 'Loading…';
  796. pre.appendChild(code);
  797. var xhr = new XMLHttpRequest();
  798. xhr.open('GET', src, true);
  799. xhr.onreadystatechange = function () {
  800. if (xhr.readyState == 4) {
  801. if (xhr.status < 400 && xhr.responseText) {
  802. code.textContent = xhr.responseText;
  803. Prism.highlightElement(code);
  804. }
  805. else if (xhr.status >= 400) {
  806. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  807. }
  808. else {
  809. code.textContent = '✖ Error: File does not exist, is empty or trying to view from localhost';
  810. }
  811. }
  812. };
  813. xhr.send(null);
  814. });
  815. }
  816. var modals = document.querySelectorAll("[data-modal]");
  817. modals.forEach(function (trigger) {
  818. trigger.addEventListener("click", function (event) {
  819. //event.preventDefault();
  820. const modal = document.getElementById(trigger.dataset.modal);
  821. modal.classList.add("phpdocumentor-modal__open");
  822. loadExternalCodeSnippets(trigger.dataset.line)
  823. const exits = modal.querySelectorAll("[data-exit-button]");
  824. exits.forEach(function (exit) {
  825. exit.addEventListener("click", function (event) {
  826. event.preventDefault();
  827. modal.classList.remove("phpdocumentor-modal__open");
  828. });
  829. });
  830. });
  831. });
  832. </script>
  833. </article>
  834. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  835. <section class="phpdocumentor-search-results__dialog">
  836. <header class="phpdocumentor-search-results__header">
  837. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  838. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  839. </header>
  840. <section class="phpdocumentor-search-results__body">
  841. <ul class="phpdocumentor-search-results__entries"></ul>
  842. </section>
  843. </section>
  844. </section>
  845. </div>
  846. </div>
  847. <a href="classes/chillerlan-QRCode-Decoder-GDLuminanceSource.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  848. </main>
  849. <script>
  850. cssVars({});
  851. </script>
  852. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  853. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  854. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  855. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  856. </body>
  857. </html>