chillerlan-QRCode-Common-IMagickLuminanceSource.html 59 KB

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