chillerlan-QRCode-Decoder-IMagickLuminanceSource.html 58 KB

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