chillerlan-QRCode-Output-QRGdImage.html 97 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003
  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-output.html">Output</a></li>
  105. </ul>
  106. <article class="phpdocumentor-element -class">
  107. <h2 class="phpdocumentor-content__title">
  108. QRGdImage
  109. <span class="phpdocumentor-element__extends">
  110. extends <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html"><abbr title="\chillerlan\QRCode\Output\QROutputAbstract">QROutputAbstract</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/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  123. :
  124. <span class="phpdocumentor-element-found-in__line">29</span>
  125. </aside>
  126. <p class="phpdocumentor-summary">Converts the matrix into GD images, raw or base64 output (requires ext-gd)</p>
  127. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  128. Tags
  129. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#tags" class="headerlink"><i class="fas fa-link"></i></a>
  130. </h5>
  131. <dl class="phpdocumentor-tag-list">
  132. <dt class="phpdocumentor-tag-list__entry">
  133. <span class="phpdocumentor-tag__name">see</span>
  134. </dt>
  135. <dd class="phpdocumentor-tag-list__definition">
  136. <span class="phpdocumentor-tag-link"><a href="https://php.net/manual/book.image.php">https://php.net/manual/book.image.php</a></span>
  137. </dd>
  138. </dl>
  139. <h3 id="toc">
  140. Table of Contents
  141. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc" class="headerlink"><i class="fas fa-link"></i></a>
  142. </h3>
  143. <h4 id="toc-properties">
  144. Properties
  145. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-properties" class="headerlink"><i class="fas fa-link"></i></a>
  146. </h4>
  147. <dl class="phpdocumentor-table-of-contents">
  148. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  149. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background">$background</a>
  150. <span>
  151. &nbsp;: int </span>
  152. </dt>
  153. <dd>The allocated background color</dd>
  154. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  155. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image">$image</a>
  156. <span>
  157. &nbsp;: resource|<abbr title="\GdImage">GdImage</abbr> </span>
  158. </dt>
  159. <dd>The GD image resource</dd>
  160. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  161. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  162. <span>
  163. &nbsp;: int </span>
  164. </dt>
  165. <dd>the side length of the QR image (modules * scale)</dd>
  166. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  167. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  168. <span>
  169. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  170. </dt>
  171. <dd>the (filled) data matrix object</dd>
  172. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  173. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  174. <span>
  175. &nbsp;: int </span>
  176. </dt>
  177. <dd>the current size of the QR matrix</dd>
  178. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  179. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  180. <span>
  181. &nbsp;: array&lt;string|int, mixed&gt; </span>
  182. </dt>
  183. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  184. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  185. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  186. <span>
  187. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  188. </dt>
  189. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  190. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  191. <span>
  192. &nbsp;: int </span>
  193. </dt>
  194. <dd>the current scaling for a QR pixel</dd>
  195. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  196. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled">$upscaled</a>
  197. <span>
  198. &nbsp;: bool </span>
  199. </dt>
  200. <dd>Whether we&#039;re running in upscale mode (scale &lt; 20)</dd>
  201. </dl>
  202. <h4 id="toc-methods">
  203. Methods
  204. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  205. </h4>
  206. <dl class="phpdocumentor-table-of-contents">
  207. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  208. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct">__construct()</a>
  209. <span>
  210. &nbsp;: mixed </span>
  211. </dt>
  212. <dd>QROutputAbstract constructor.</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  214. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump">dump()</a>
  215. <span>
  216. &nbsp;: string|resource|<abbr title="\GdImage">GdImage</abbr> </span>
  217. </dt>
  218. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  219. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  220. <span>
  221. &nbsp;: bool </span>
  222. </dt>
  223. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  224. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD">checkGD()</a>
  225. <span>
  226. &nbsp;: void </span>
  227. </dt>
  228. <dd>Checks whether GD is installed and if the given mode is supported</dd>
  229. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  230. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  231. <span>
  232. &nbsp;: array&lt;string|int, mixed&gt; </span>
  233. </dt>
  234. <dd>collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  235. returns an array with the transformed modules</dd>
  236. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  237. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage">createImage()</a>
  238. <span>
  239. &nbsp;: <abbr title="\GdImage">GdImage</abbr>|resource </span>
  240. </dt>
  241. <dd>Creates a new GdImage resource and scales it if necessary</dd>
  242. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  243. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage">drawImage()</a>
  244. <span>
  245. &nbsp;: void </span>
  246. </dt>
  247. <dd>Draws the QR image</dd>
  248. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  249. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage">dumpImage()</a>
  250. <span>
  251. &nbsp;: string </span>
  252. </dt>
  253. <dd>Creates the final image by calling the desired GD output function</dd>
  254. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  255. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  256. <span>
  257. &nbsp;: mixed|null </span>
  258. </dt>
  259. <dd>Returns a default value for either dark or light modules</dd>
  260. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  261. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  262. <span>
  263. &nbsp;: mixed|null </span>
  264. </dt>
  265. <dd>Returns the prepared value for the given $M_TYPE</dd>
  266. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  267. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a>
  268. <span>
  269. &nbsp;: mixed|null </span>
  270. </dt>
  271. <dd>Returns the prepared module value at the given coordinate [$x, $y] (convenience)</dd>
  272. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  273. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module">module()</a>
  274. <span>
  275. &nbsp;: void </span>
  276. </dt>
  277. <dd>Creates a single QR pixel with the given settings</dd>
  278. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  279. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue">prepareModuleValue()</a>
  280. <span>
  281. &nbsp;: mixed|null </span>
  282. </dt>
  283. <dd>Prepares the value for the given input ()</dd>
  284. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  285. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  286. <span>
  287. &nbsp;: void </span>
  288. </dt>
  289. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  290. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  291. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor">setBgColor()</a>
  292. <span>
  293. &nbsp;: void </span>
  294. </dt>
  295. <dd>Sets the background color</dd>
  296. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  297. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  298. <span>
  299. &nbsp;: void </span>
  300. </dt>
  301. <dd>Sets/updates the matrix dimensions</dd>
  302. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  303. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  304. <span>
  305. &nbsp;: void </span>
  306. </dt>
  307. <dd>Sets the initial module values</dd>
  308. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  309. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor">setTransparencyColor()</a>
  310. <span>
  311. &nbsp;: void </span>
  312. </dt>
  313. <dd>Sets the transparency color</dd>
  314. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  315. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  316. <span>
  317. &nbsp;: string </span>
  318. </dt>
  319. <dd>Returns a base64 data URI for the given string and mime type</dd>
  320. </dl>
  321. <section class="phpdocumentor-properties">
  322. <h3 class="phpdocumentor-elements__header" id="properties">
  323. Properties
  324. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  325. </h3>
  326. <article
  327. class="
  328. phpdocumentor-element
  329. -property
  330. -protected
  331. "
  332. >
  333. <h4 class="phpdocumentor-element__name" id="property_background">
  334. $background
  335. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background" class="headerlink"><i class="fas fa-link"></i></a>
  336. <span class="phpdocumentor-element__modifiers">
  337. </span>
  338. </h4>
  339. <aside class="phpdocumentor-element-found-in">
  340. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  341. :
  342. <span class="phpdocumentor-element-found-in__line">44</span>
  343. </aside>
  344. <p class="phpdocumentor-summary">The allocated background color</p>
  345. <code class="phpdocumentor-code phpdocumentor-signature ">
  346. <span class="phpdocumentor-signature__visibility">protected</span>
  347. <span class="phpdocumentor-signature__type">int</span>
  348. <span class="phpdocumentor-signature__name">$background</span>
  349. </code>
  350. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  351. Tags
  352. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background#tags" class="headerlink"><i class="fas fa-link"></i></a>
  353. </h5>
  354. <dl class="phpdocumentor-tag-list">
  355. <dt class="phpdocumentor-tag-list__entry">
  356. <span class="phpdocumentor-tag__name">see</span>
  357. </dt>
  358. <dd class="phpdocumentor-tag-list__definition">
  359. <span class="phpdocumentor-tag-link"><abbr title="\imagecolorallocate()">imagecolorallocate()</abbr></span>
  360. </dd>
  361. </dl>
  362. </article>
  363. <article
  364. class="
  365. phpdocumentor-element
  366. -property
  367. -protected
  368. "
  369. >
  370. <h4 class="phpdocumentor-element__name" id="property_image">
  371. $image
  372. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image" class="headerlink"><i class="fas fa-link"></i></a>
  373. <span class="phpdocumentor-element__modifiers">
  374. </span>
  375. </h4>
  376. <aside class="phpdocumentor-element-found-in">
  377. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  378. :
  379. <span class="phpdocumentor-element-found-in__line">37</span>
  380. </aside>
  381. <p class="phpdocumentor-summary">The GD image resource</p>
  382. <code class="phpdocumentor-code phpdocumentor-signature ">
  383. <span class="phpdocumentor-signature__visibility">protected</span>
  384. <span class="phpdocumentor-signature__type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  385. <span class="phpdocumentor-signature__name">$image</span>
  386. </code>
  387. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  388. Tags
  389. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image#tags" class="headerlink"><i class="fas fa-link"></i></a>
  390. </h5>
  391. <dl class="phpdocumentor-tag-list">
  392. <dt class="phpdocumentor-tag-list__entry">
  393. <span class="phpdocumentor-tag__name">see</span>
  394. </dt>
  395. <dd class="phpdocumentor-tag-list__definition">
  396. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\imagecreatetruecolor()">imagecreatetruecolor()</abbr></span>
  397. </dd>
  398. </dl>
  399. </article>
  400. <article
  401. class="
  402. phpdocumentor-element
  403. -property
  404. -protected
  405. "
  406. >
  407. <h4 class="phpdocumentor-element__name" id="property_length">
  408. $length
  409. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  410. <span class="phpdocumentor-element__modifiers">
  411. </span>
  412. </h4>
  413. <aside class="phpdocumentor-element-found-in">
  414. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  415. :
  416. <span class="phpdocumentor-element-found-in__line">40</span>
  417. </aside>
  418. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  419. <code class="phpdocumentor-code phpdocumentor-signature ">
  420. <span class="phpdocumentor-signature__visibility">protected</span>
  421. <span class="phpdocumentor-signature__type">int</span>
  422. <span class="phpdocumentor-signature__name">$length</span>
  423. </code>
  424. </article>
  425. <article
  426. class="
  427. phpdocumentor-element
  428. -property
  429. -protected
  430. "
  431. >
  432. <h4 class="phpdocumentor-element__name" id="property_matrix">
  433. $matrix
  434. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  435. <span class="phpdocumentor-element__modifiers">
  436. </span>
  437. </h4>
  438. <aside class="phpdocumentor-element-found-in">
  439. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  440. :
  441. <span class="phpdocumentor-element-found-in__line">50</span>
  442. </aside>
  443. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  444. <code class="phpdocumentor-code phpdocumentor-signature ">
  445. <span class="phpdocumentor-signature__visibility">protected</span>
  446. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  447. <span class="phpdocumentor-signature__name">$matrix</span>
  448. </code>
  449. </article>
  450. <article
  451. class="
  452. phpdocumentor-element
  453. -property
  454. -protected
  455. "
  456. >
  457. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  458. $moduleCount
  459. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  460. <span class="phpdocumentor-element__modifiers">
  461. </span>
  462. </h4>
  463. <aside class="phpdocumentor-element-found-in">
  464. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  465. :
  466. <span class="phpdocumentor-element-found-in__line">28</span>
  467. </aside>
  468. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  469. <code class="phpdocumentor-code phpdocumentor-signature ">
  470. <span class="phpdocumentor-signature__visibility">protected</span>
  471. <span class="phpdocumentor-signature__type">int</span>
  472. <span class="phpdocumentor-signature__name">$moduleCount</span>
  473. </code>
  474. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  475. Tags
  476. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount#tags" class="headerlink"><i class="fas fa-link"></i></a>
  477. </h5>
  478. <dl class="phpdocumentor-tag-list">
  479. <dt class="phpdocumentor-tag-list__entry">
  480. <span class="phpdocumentor-tag__name">see</span>
  481. </dt>
  482. <dd class="phpdocumentor-tag-list__definition">
  483. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html#method_getSize"><abbr title="\chillerlan\QRCode\Data\QRMatrix::getSize()">QRMatrix::getSize()</abbr></a></span>
  484. </dd>
  485. </dl>
  486. </article>
  487. <article
  488. class="
  489. phpdocumentor-element
  490. -property
  491. -protected
  492. "
  493. >
  494. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  495. $moduleValues
  496. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  497. <span class="phpdocumentor-element__modifiers">
  498. </span>
  499. </h4>
  500. <aside class="phpdocumentor-element-found-in">
  501. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  502. :
  503. <span class="phpdocumentor-element-found-in__line">45</span>
  504. </aside>
  505. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  506. <code class="phpdocumentor-code phpdocumentor-signature ">
  507. <span class="phpdocumentor-signature__visibility">protected</span>
  508. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  509. <span class="phpdocumentor-signature__name">$moduleValues</span>
  510. </code>
  511. </article>
  512. <article
  513. class="
  514. phpdocumentor-element
  515. -property
  516. -protected
  517. "
  518. >
  519. <h4 class="phpdocumentor-element__name" id="property_options">
  520. $options
  521. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  522. <span class="phpdocumentor-element__modifiers">
  523. </span>
  524. </h4>
  525. <aside class="phpdocumentor-element-found-in">
  526. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  527. :
  528. <span class="phpdocumentor-element-found-in__line">55</span>
  529. </aside>
  530. <code class="phpdocumentor-code phpdocumentor-signature ">
  531. <span class="phpdocumentor-signature__visibility">protected</span>
  532. <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>
  533. <span class="phpdocumentor-signature__name">$options</span>
  534. </code>
  535. </article>
  536. <article
  537. class="
  538. phpdocumentor-element
  539. -property
  540. -protected
  541. "
  542. >
  543. <h4 class="phpdocumentor-element__name" id="property_scale">
  544. $scale
  545. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  546. <span class="phpdocumentor-element__modifiers">
  547. </span>
  548. </h4>
  549. <aside class="phpdocumentor-element-found-in">
  550. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  551. :
  552. <span class="phpdocumentor-element-found-in__line">35</span>
  553. </aside>
  554. <p class="phpdocumentor-summary">the current scaling for a QR pixel</p>
  555. <code class="phpdocumentor-code phpdocumentor-signature ">
  556. <span class="phpdocumentor-signature__visibility">protected</span>
  557. <span class="phpdocumentor-signature__type">int</span>
  558. <span class="phpdocumentor-signature__name">$scale</span>
  559. </code>
  560. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  561. Tags
  562. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale#tags" class="headerlink"><i class="fas fa-link"></i></a>
  563. </h5>
  564. <dl class="phpdocumentor-tag-list">
  565. <dt class="phpdocumentor-tag-list__entry">
  566. <span class="phpdocumentor-tag__name">see</span>
  567. </dt>
  568. <dd class="phpdocumentor-tag-list__definition">
  569. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  570. </dd>
  571. </dl>
  572. </article>
  573. <article
  574. class="
  575. phpdocumentor-element
  576. -property
  577. -protected
  578. "
  579. >
  580. <h4 class="phpdocumentor-element__name" id="property_upscaled">
  581. $upscaled
  582. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled" class="headerlink"><i class="fas fa-link"></i></a>
  583. <span class="phpdocumentor-element__modifiers">
  584. </span>
  585. </h4>
  586. <aside class="phpdocumentor-element-found-in">
  587. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  588. :
  589. <span class="phpdocumentor-element-found-in__line">51</span>
  590. </aside>
  591. <p class="phpdocumentor-summary">Whether we&#039;re running in upscale mode (scale &lt; 20)</p>
  592. <code class="phpdocumentor-code phpdocumentor-signature ">
  593. <span class="phpdocumentor-signature__visibility">protected</span>
  594. <span class="phpdocumentor-signature__type">bool</span>
  595. <span class="phpdocumentor-signature__name">$upscaled</span>
  596. = <span class="phpdocumentor-signature__default-value">false</span></code>
  597. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  598. Tags
  599. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled#tags" class="headerlink"><i class="fas fa-link"></i></a>
  600. </h5>
  601. <dl class="phpdocumentor-tag-list">
  602. <dt class="phpdocumentor-tag-list__entry">
  603. <span class="phpdocumentor-tag__name">see</span>
  604. </dt>
  605. <dd class="phpdocumentor-tag-list__definition">
  606. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  607. </dd>
  608. </dl>
  609. </article>
  610. </section>
  611. <section class="phpdocumentor-methods">
  612. <h3 class="phpdocumentor-elements__header" id="methods">
  613. Methods
  614. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  615. </h3>
  616. <article
  617. class="phpdocumentor-element
  618. -method
  619. -public
  620. "
  621. >
  622. <h4 class="phpdocumentor-element__name" id="method___construct">
  623. __construct()
  624. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  625. </h4>
  626. <aside class="phpdocumentor-element-found-in">
  627. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  628. :
  629. <span class="phpdocumentor-element-found-in__line">59</span>
  630. </aside>
  631. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  632. <code class="phpdocumentor-code phpdocumentor-signature ">
  633. <span class="phpdocumentor-signature__visibility">public</span>
  634. <span class="phpdocumentor-signature__name">__construct</span><span>(</span><span class="phpdocumentor-signature__argument"><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 class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$matrix</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed</span></code>
  635. <div class="phpdocumentor-label-line">
  636. </div>
  637. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  638. <dl class="phpdocumentor-argument-list">
  639. <dt class="phpdocumentor-argument-list__entry">
  640. <span class="phpdocumentor-signature__argument__name">$options</span>
  641. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  642. </dt>
  643. <dd class="phpdocumentor-argument-list__definition">
  644. </dd>
  645. <dt class="phpdocumentor-argument-list__entry">
  646. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  647. : <span class="phpdocumentor-signature__argument__return-type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  648. </dt>
  649. <dd class="phpdocumentor-argument-list__definition">
  650. </dd>
  651. </dl>
  652. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  653. Tags
  654. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  655. </h5>
  656. <dl class="phpdocumentor-tag-list">
  657. <dt class="phpdocumentor-tag-list__entry">
  658. <span class="phpdocumentor-tag__name">inheritDoc</span>
  659. </dt>
  660. <dd class="phpdocumentor-tag-list__definition">
  661. </dd>
  662. <dt class="phpdocumentor-tag-list__entry">
  663. <span class="phpdocumentor-tag__name">throws</span>
  664. </dt>
  665. <dd class="phpdocumentor-tag-list__definition">
  666. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  667. </dd>
  668. <dt class="phpdocumentor-tag-list__entry">
  669. <span class="phpdocumentor-tag__name">noinspection</span>
  670. </dt>
  671. <dd class="phpdocumentor-tag-list__definition">
  672. <section class="phpdocumentor-description"><p>PhpMissingParentConstructorInspection</p>
  673. </section>
  674. </dd>
  675. </dl>
  676. </article>
  677. <article
  678. class="phpdocumentor-element
  679. -method
  680. -public
  681. "
  682. >
  683. <h4 class="phpdocumentor-element__name" id="method_dump">
  684. dump()
  685. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump" 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/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  689. :
  690. <span class="phpdocumentor-element-found-in__line">195</span>
  691. </aside>
  692. <code class="phpdocumentor-code phpdocumentor-signature ">
  693. <span class="phpdocumentor-signature__visibility">public</span>
  694. <span class="phpdocumentor-signature__name">dump</span><span>(</span><span class="phpdocumentor-signature__argument"><span>[</span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</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">string|resource|<abbr title="\GdImage">GdImage</abbr></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">$file</span>
  701. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  702. = <span class="phpdocumentor-signature__argument__default-value">null</span> </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-Output-QRGdImage.html#method_dump#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">inheritDoc</span>
  713. </dt>
  714. <dd class="phpdocumentor-tag-list__definition">
  715. </dd>
  716. <dt class="phpdocumentor-tag-list__entry">
  717. <span class="phpdocumentor-tag__name">phan-suppress</span>
  718. </dt>
  719. <dd class="phpdocumentor-tag-list__definition">
  720. <section class="phpdocumentor-description"><p>PhanUndeclaredTypeReturnType, PhanTypeMismatchReturn</p>
  721. </section>
  722. </dd>
  723. <dt class="phpdocumentor-tag-list__entry">
  724. <span class="phpdocumentor-tag__name">throws</span>
  725. </dt>
  726. <dd class="phpdocumentor-tag-list__definition">
  727. <span class="phpdocumentor-tag-link"><abbr title="\ErrorException">ErrorException</abbr></span>
  728. </dd>
  729. </dl>
  730. <section>
  731. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  732. <span class="phpdocumentor-signature__response_type">string|resource|<abbr title="\GdImage">GdImage</abbr></span>
  733. </section>
  734. </article>
  735. <article
  736. class="phpdocumentor-element
  737. -method
  738. -public
  739. -static "
  740. >
  741. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  742. moduleValueIsValid()
  743. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  744. </h4>
  745. <aside class="phpdocumentor-element-found-in">
  746. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  747. :
  748. <span class="phpdocumentor-element-found-in__line">130</span>
  749. </aside>
  750. <code class="phpdocumentor-code phpdocumentor-signature ">
  751. <span class="phpdocumentor-signature__visibility">public</span>
  752. <span class="phpdocumentor-signature__static">static</span> <span class="phpdocumentor-signature__name">moduleValueIsValid</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">mixed&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">bool</span></code>
  753. <div class="phpdocumentor-label-line">
  754. </div>
  755. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  756. <dl class="phpdocumentor-argument-list">
  757. <dt class="phpdocumentor-argument-list__entry">
  758. <span class="phpdocumentor-signature__argument__name">$value</span>
  759. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  760. </dt>
  761. <dd class="phpdocumentor-argument-list__definition">
  762. </dd>
  763. </dl>
  764. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  765. Tags
  766. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  767. </h5>
  768. <dl class="phpdocumentor-tag-list">
  769. <dt class="phpdocumentor-tag-list__entry">
  770. <span class="phpdocumentor-tag__name">inheritDoc</span>
  771. </dt>
  772. <dd class="phpdocumentor-tag-list__definition">
  773. </dd>
  774. </dl>
  775. <section>
  776. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  777. <span class="phpdocumentor-signature__response_type">bool</span>
  778. </section>
  779. </article>
  780. <article
  781. class="phpdocumentor-element
  782. -method
  783. -protected
  784. "
  785. >
  786. <h4 class="phpdocumentor-element__name" id="method_checkGD">
  787. checkGD()
  788. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD" class="headerlink"><i class="fas fa-link"></i></a>
  789. </h4>
  790. <aside class="phpdocumentor-element-found-in">
  791. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  792. :
  793. <span class="phpdocumentor-element-found-in__line">78</span>
  794. </aside>
  795. <p class="phpdocumentor-summary">Checks whether GD is installed and if the given mode is supported</p>
  796. <code class="phpdocumentor-code phpdocumentor-signature ">
  797. <span class="phpdocumentor-signature__visibility">protected</span>
  798. <span class="phpdocumentor-signature__name">checkGD</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  799. <div class="phpdocumentor-label-line">
  800. </div>
  801. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  802. Tags
  803. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD#tags" class="headerlink"><i class="fas fa-link"></i></a>
  804. </h5>
  805. <dl class="phpdocumentor-tag-list">
  806. <dt class="phpdocumentor-tag-list__entry">
  807. <span class="phpdocumentor-tag__name">throws</span>
  808. </dt>
  809. <dd class="phpdocumentor-tag-list__definition">
  810. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  811. </dd>
  812. <dt class="phpdocumentor-tag-list__entry">
  813. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  814. </dt>
  815. <dd class="phpdocumentor-tag-list__definition">
  816. </dd>
  817. </dl>
  818. </article>
  819. <article
  820. class="phpdocumentor-element
  821. -method
  822. -protected
  823. "
  824. >
  825. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  826. collectModules()
  827. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  828. </h4>
  829. <aside class="phpdocumentor-element-found-in">
  830. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  831. :
  832. <span class="phpdocumentor-element-found-in__line">176</span>
  833. </aside>
  834. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  835. returns an array with the transformed modules</p>
  836. <code class="phpdocumentor-code phpdocumentor-signature ">
  837. <span class="phpdocumentor-signature__visibility">protected</span>
  838. <span class="phpdocumentor-signature__name">collectModules</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr>&nbsp;</span><span class="phpdocumentor-signature__argument__name">$transform</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  839. <div class="phpdocumentor-label-line">
  840. </div>
  841. <section class="phpdocumentor-description"><p>The transform callback is called with the following parameters:</p>
  842. <p>$x - current column
  843. $y - current row
  844. $M_TYPE - field value
  845. $M_TYPE_LAYER - (possibly modified) field value that acts as layer id</p>
  846. </section>
  847. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  848. <dl class="phpdocumentor-argument-list">
  849. <dt class="phpdocumentor-argument-list__entry">
  850. <span class="phpdocumentor-signature__argument__name">$transform</span>
  851. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
  852. </dt>
  853. <dd class="phpdocumentor-argument-list__definition">
  854. </dd>
  855. </dl>
  856. <section>
  857. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  858. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  859. </section>
  860. </article>
  861. <article
  862. class="phpdocumentor-element
  863. -method
  864. -protected
  865. "
  866. >
  867. <h4 class="phpdocumentor-element__name" id="method_createImage">
  868. createImage()
  869. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage" class="headerlink"><i class="fas fa-link"></i></a>
  870. </h4>
  871. <aside class="phpdocumentor-element-found-in">
  872. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  873. :
  874. <span class="phpdocumentor-element-found-in__line">115</span>
  875. </aside>
  876. <p class="phpdocumentor-summary">Creates a new GdImage resource and scales it if necessary</p>
  877. <code class="phpdocumentor-code phpdocumentor-signature ">
  878. <span class="phpdocumentor-signature__visibility">protected</span>
  879. <span class="phpdocumentor-signature__name">createImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type"><abbr title="\GdImage">GdImage</abbr>|resource</span></code>
  880. <div class="phpdocumentor-label-line">
  881. </div>
  882. <section class="phpdocumentor-description"><p>we're scaling the image up in order to draw crisp round circles, otherwise they appear square-y on small scales</p>
  883. </section>
  884. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  885. Tags
  886. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage#tags" class="headerlink"><i class="fas fa-link"></i></a>
  887. </h5>
  888. <dl class="phpdocumentor-tag-list">
  889. <dt class="phpdocumentor-tag-list__entry">
  890. <span class="phpdocumentor-tag__name">see</span>
  891. </dt>
  892. <dd class="phpdocumentor-tag-list__definition">
  893. <span class="phpdocumentor-tag-link"><a href="https://github.com/chillerlan/php-qrcode/issues/23">https://github.com/chillerlan/php-qrcode/issues/23</a></span>
  894. </dd>
  895. </dl>
  896. <section>
  897. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  898. <span class="phpdocumentor-signature__response_type"><abbr title="\GdImage">GdImage</abbr>|resource</span>
  899. </section>
  900. </article>
  901. <article
  902. class="phpdocumentor-element
  903. -method
  904. -protected
  905. "
  906. >
  907. <h4 class="phpdocumentor-element__name" id="method_drawImage">
  908. drawImage()
  909. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage" class="headerlink"><i class="fas fa-link"></i></a>
  910. </h4>
  911. <aside class="phpdocumentor-element-found-in">
  912. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  913. :
  914. <span class="phpdocumentor-element-found-in__line">275</span>
  915. </aside>
  916. <p class="phpdocumentor-summary">Draws the QR image</p>
  917. <code class="phpdocumentor-code phpdocumentor-signature ">
  918. <span class="phpdocumentor-signature__visibility">protected</span>
  919. <span class="phpdocumentor-signature__name">drawImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  920. <div class="phpdocumentor-label-line">
  921. </div>
  922. </article>
  923. <article
  924. class="phpdocumentor-element
  925. -method
  926. -protected
  927. "
  928. >
  929. <h4 class="phpdocumentor-element__name" id="method_dumpImage">
  930. dumpImage()
  931. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage" class="headerlink"><i class="fas fa-link"></i></a>
  932. </h4>
  933. <aside class="phpdocumentor-element-found-in">
  934. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  935. :
  936. <span class="phpdocumentor-element-found-in__line">322</span>
  937. </aside>
  938. <p class="phpdocumentor-summary">Creates the final image by calling the desired GD output function</p>
  939. <code class="phpdocumentor-code phpdocumentor-signature ">
  940. <span class="phpdocumentor-signature__visibility">protected</span>
  941. <span class="phpdocumentor-signature__name">dumpImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  942. <div class="phpdocumentor-label-line">
  943. </div>
  944. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  945. Tags
  946. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage#tags" class="headerlink"><i class="fas fa-link"></i></a>
  947. </h5>
  948. <dl class="phpdocumentor-tag-list">
  949. <dt class="phpdocumentor-tag-list__entry">
  950. <span class="phpdocumentor-tag__name">throws</span>
  951. </dt>
  952. <dd class="phpdocumentor-tag-list__definition">
  953. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  954. </dd>
  955. </dl>
  956. <section>
  957. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  958. <span class="phpdocumentor-signature__response_type">string</span>
  959. </section>
  960. </article>
  961. <article
  962. class="phpdocumentor-element
  963. -method
  964. -protected
  965. "
  966. >
  967. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  968. getDefaultModuleValue()
  969. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  970. </h4>
  971. <aside class="phpdocumentor-element-found-in">
  972. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  973. :
  974. <span class="phpdocumentor-element-found-in__line">183</span>
  975. </aside>
  976. <p class="phpdocumentor-summary">Returns a default value for either dark or light modules</p>
  977. <code class="phpdocumentor-code phpdocumentor-signature ">
  978. <span class="phpdocumentor-signature__visibility">protected</span>
  979. <span class="phpdocumentor-signature__name">getDefaultModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">bool&nbsp;</span><span class="phpdocumentor-signature__argument__name">$isDark</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  980. <div class="phpdocumentor-label-line">
  981. </div>
  982. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  983. <dl class="phpdocumentor-argument-list">
  984. <dt class="phpdocumentor-argument-list__entry">
  985. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  986. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  987. </dt>
  988. <dd class="phpdocumentor-argument-list__definition">
  989. </dd>
  990. </dl>
  991. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  992. Tags
  993. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  994. </h5>
  995. <dl class="phpdocumentor-tag-list">
  996. <dt class="phpdocumentor-tag-list__entry">
  997. <span class="phpdocumentor-tag__name">inheritDoc</span>
  998. </dt>
  999. <dd class="phpdocumentor-tag-list__definition">
  1000. </dd>
  1001. </dl>
  1002. <section>
  1003. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1004. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1005. &mdash;
  1006. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  1007. </section>
  1008. </section>
  1009. </article>
  1010. <article
  1011. class="phpdocumentor-element
  1012. -method
  1013. -protected
  1014. "
  1015. >
  1016. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  1017. getModuleValue()
  1018. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1019. </h4>
  1020. <aside class="phpdocumentor-element-found-in">
  1021. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1022. :
  1023. <span class="phpdocumentor-element-found-in__line">100</span>
  1024. </aside>
  1025. <p class="phpdocumentor-summary">Returns the prepared value for the given $M_TYPE</p>
  1026. <code class="phpdocumentor-code phpdocumentor-signature ">
  1027. <span class="phpdocumentor-signature__visibility">protected</span>
  1028. <span class="phpdocumentor-signature__name">getModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  1029. <div class="phpdocumentor-label-line">
  1030. </div>
  1031. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1032. <dl class="phpdocumentor-argument-list">
  1033. <dt class="phpdocumentor-argument-list__entry">
  1034. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1035. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1036. </dt>
  1037. <dd class="phpdocumentor-argument-list__definition">
  1038. </dd>
  1039. </dl>
  1040. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1041. Tags
  1042. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1043. </h5>
  1044. <dl class="phpdocumentor-tag-list">
  1045. <dt class="phpdocumentor-tag-list__entry">
  1046. <span class="phpdocumentor-tag__name">throws</span>
  1047. </dt>
  1048. <dd class="phpdocumentor-tag-list__definition">
  1049. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1050. </dd>
  1051. </dl>
  1052. <section>
  1053. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1054. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1055. &mdash;
  1056. <section class="phpdocumentor-description"><p>return value depends on the output class, null if $moduleValues[$M_TYPE] doesn't exist</p>
  1057. </section>
  1058. </section>
  1059. </article>
  1060. <article
  1061. class="phpdocumentor-element
  1062. -method
  1063. -protected
  1064. "
  1065. >
  1066. <h4 class="phpdocumentor-element__name" id="method_getModuleValueAt">
  1067. getModuleValueAt()
  1068. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt" class="headerlink"><i class="fas fa-link"></i></a>
  1069. </h4>
  1070. <aside class="phpdocumentor-element-found-in">
  1071. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1072. :
  1073. <span class="phpdocumentor-element-found-in__line">115</span>
  1074. </aside>
  1075. <p class="phpdocumentor-summary">Returns the prepared module value at the given coordinate [$x, $y] (convenience)</p>
  1076. <code class="phpdocumentor-code phpdocumentor-signature ">
  1077. <span class="phpdocumentor-signature__visibility">protected</span>
  1078. <span class="phpdocumentor-signature__name">getModuleValueAt</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</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">$y</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  1079. <div class="phpdocumentor-label-line">
  1080. </div>
  1081. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1082. <dl class="phpdocumentor-argument-list">
  1083. <dt class="phpdocumentor-argument-list__entry">
  1084. <span class="phpdocumentor-signature__argument__name">$x</span>
  1085. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1086. </dt>
  1087. <dd class="phpdocumentor-argument-list__definition">
  1088. </dd>
  1089. <dt class="phpdocumentor-argument-list__entry">
  1090. <span class="phpdocumentor-signature__argument__name">$y</span>
  1091. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1092. </dt>
  1093. <dd class="phpdocumentor-argument-list__definition">
  1094. </dd>
  1095. </dl>
  1096. <section>
  1097. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1098. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1099. </section>
  1100. </article>
  1101. <article
  1102. class="phpdocumentor-element
  1103. -method
  1104. -protected
  1105. "
  1106. >
  1107. <h4 class="phpdocumentor-element__name" id="method_module">
  1108. module()
  1109. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module" class="headerlink"><i class="fas fa-link"></i></a>
  1110. </h4>
  1111. <aside class="phpdocumentor-element-found-in">
  1112. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1113. :
  1114. <span class="phpdocumentor-element-found-in__line">286</span>
  1115. </aside>
  1116. <p class="phpdocumentor-summary">Creates a single QR pixel with the given settings</p>
  1117. <code class="phpdocumentor-code phpdocumentor-signature ">
  1118. <span class="phpdocumentor-signature__visibility">protected</span>
  1119. <span class="phpdocumentor-signature__name">module</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">int&nbsp;</span><span class="phpdocumentor-signature__argument__name">$x</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">$y</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">$M_TYPE</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1120. <div class="phpdocumentor-label-line">
  1121. </div>
  1122. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1123. <dl class="phpdocumentor-argument-list">
  1124. <dt class="phpdocumentor-argument-list__entry">
  1125. <span class="phpdocumentor-signature__argument__name">$x</span>
  1126. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1127. </dt>
  1128. <dd class="phpdocumentor-argument-list__definition">
  1129. </dd>
  1130. <dt class="phpdocumentor-argument-list__entry">
  1131. <span class="phpdocumentor-signature__argument__name">$y</span>
  1132. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1133. </dt>
  1134. <dd class="phpdocumentor-argument-list__definition">
  1135. </dd>
  1136. <dt class="phpdocumentor-argument-list__entry">
  1137. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1138. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1139. </dt>
  1140. <dd class="phpdocumentor-argument-list__definition">
  1141. </dd>
  1142. </dl>
  1143. </article>
  1144. <article
  1145. class="phpdocumentor-element
  1146. -method
  1147. -protected
  1148. "
  1149. >
  1150. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  1151. prepareModuleValue()
  1152. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1153. </h4>
  1154. <aside class="phpdocumentor-element-found-in">
  1155. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1156. :
  1157. <span class="phpdocumentor-element-found-in__line">158</span>
  1158. </aside>
  1159. <p class="phpdocumentor-summary">Prepares the value for the given input ()</p>
  1160. <code class="phpdocumentor-code phpdocumentor-signature ">
  1161. <span class="phpdocumentor-signature__visibility">protected</span>
  1162. <span class="phpdocumentor-signature__name">prepareModuleValue</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;&nbsp;</span><span class="phpdocumentor-signature__argument__name">$value</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">mixed|null</span></code>
  1163. <div class="phpdocumentor-label-line">
  1164. </div>
  1165. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1166. <dl class="phpdocumentor-argument-list">
  1167. <dt class="phpdocumentor-argument-list__entry">
  1168. <span class="phpdocumentor-signature__argument__name">$value</span>
  1169. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  1170. </dt>
  1171. <dd class="phpdocumentor-argument-list__definition">
  1172. </dd>
  1173. </dl>
  1174. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1175. Tags
  1176. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1177. </h5>
  1178. <dl class="phpdocumentor-tag-list">
  1179. <dt class="phpdocumentor-tag-list__entry">
  1180. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1181. </dt>
  1182. <dd class="phpdocumentor-tag-list__definition">
  1183. </dd>
  1184. <dt class="phpdocumentor-tag-list__entry">
  1185. <span class="phpdocumentor-tag__name">throws</span>
  1186. </dt>
  1187. <dd class="phpdocumentor-tag-list__definition">
  1188. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1189. </dd>
  1190. </dl>
  1191. <section>
  1192. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1193. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1194. &mdash;
  1195. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  1196. </section>
  1197. </section>
  1198. </article>
  1199. <article
  1200. class="phpdocumentor-element
  1201. -method
  1202. -protected
  1203. "
  1204. >
  1205. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  1206. saveToFile()
  1207. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  1208. </h4>
  1209. <aside class="phpdocumentor-element-found-in">
  1210. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1211. :
  1212. <span class="phpdocumentor-element-found-in__line">150</span>
  1213. </aside>
  1214. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  1215. <code class="phpdocumentor-code phpdocumentor-signature ">
  1216. <span class="phpdocumentor-signature__visibility">protected</span>
  1217. <span class="phpdocumentor-signature__name">saveToFile</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>[</span><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$file</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">void</span></code>
  1218. <div class="phpdocumentor-label-line">
  1219. </div>
  1220. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1221. <dl class="phpdocumentor-argument-list">
  1222. <dt class="phpdocumentor-argument-list__entry">
  1223. <span class="phpdocumentor-signature__argument__name">$data</span>
  1224. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1225. </dt>
  1226. <dd class="phpdocumentor-argument-list__definition">
  1227. </dd>
  1228. <dt class="phpdocumentor-argument-list__entry">
  1229. <span class="phpdocumentor-signature__argument__name">$file</span>
  1230. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1231. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1232. <dd class="phpdocumentor-argument-list__definition">
  1233. </dd>
  1234. </dl>
  1235. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1236. Tags
  1237. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1238. </h5>
  1239. <dl class="phpdocumentor-tag-list">
  1240. <dt class="phpdocumentor-tag-list__entry">
  1241. <span class="phpdocumentor-tag__name">see</span>
  1242. </dt>
  1243. <dd class="phpdocumentor-tag-list__definition">
  1244. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  1245. </dd>
  1246. <dt class="phpdocumentor-tag-list__entry">
  1247. <span class="phpdocumentor-tag__name">see</span>
  1248. </dt>
  1249. <dd class="phpdocumentor-tag-list__definition">
  1250. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  1251. </dd>
  1252. <dt class="phpdocumentor-tag-list__entry">
  1253. <span class="phpdocumentor-tag__name">throws</span>
  1254. </dt>
  1255. <dd class="phpdocumentor-tag-list__definition">
  1256. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1257. </dd>
  1258. </dl>
  1259. </article>
  1260. <article
  1261. class="phpdocumentor-element
  1262. -method
  1263. -protected
  1264. "
  1265. >
  1266. <h4 class="phpdocumentor-element__name" id="method_setBgColor">
  1267. setBgColor()
  1268. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor" class="headerlink"><i class="fas fa-link"></i></a>
  1269. </h4>
  1270. <aside class="phpdocumentor-element-found-in">
  1271. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1272. :
  1273. <span class="phpdocumentor-element-found-in__line">239</span>
  1274. </aside>
  1275. <p class="phpdocumentor-summary">Sets the background color</p>
  1276. <code class="phpdocumentor-code phpdocumentor-signature ">
  1277. <span class="phpdocumentor-signature__visibility">protected</span>
  1278. <span class="phpdocumentor-signature__name">setBgColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1279. <div class="phpdocumentor-label-line">
  1280. </div>
  1281. </article>
  1282. <article
  1283. class="phpdocumentor-element
  1284. -method
  1285. -protected
  1286. "
  1287. >
  1288. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  1289. setMatrixDimensions()
  1290. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1291. </h4>
  1292. <aside class="phpdocumentor-element-found-in">
  1293. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1294. :
  1295. <span class="phpdocumentor-element-found-in__line">73</span>
  1296. </aside>
  1297. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  1298. <code class="phpdocumentor-code phpdocumentor-signature ">
  1299. <span class="phpdocumentor-signature__visibility">protected</span>
  1300. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1301. <div class="phpdocumentor-label-line">
  1302. </div>
  1303. <section class="phpdocumentor-description"><p>Call this method if you modify the matrix from within your custom module in case the dimensions have been changed</p>
  1304. </section>
  1305. </article>
  1306. <article
  1307. class="phpdocumentor-element
  1308. -method
  1309. -protected
  1310. "
  1311. >
  1312. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  1313. setModuleValues()
  1314. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  1315. </h4>
  1316. <aside class="phpdocumentor-element-found-in">
  1317. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1318. :
  1319. <span class="phpdocumentor-element-found-in__line">82</span>
  1320. </aside>
  1321. <p class="phpdocumentor-summary">Sets the initial module values</p>
  1322. <code class="phpdocumentor-code phpdocumentor-signature ">
  1323. <span class="phpdocumentor-signature__visibility">protected</span>
  1324. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1325. <div class="phpdocumentor-label-line">
  1326. </div>
  1327. </article>
  1328. <article
  1329. class="phpdocumentor-element
  1330. -method
  1331. -protected
  1332. "
  1333. >
  1334. <h4 class="phpdocumentor-element__name" id="method_setTransparencyColor">
  1335. setTransparencyColor()
  1336. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor" class="headerlink"><i class="fas fa-link"></i></a>
  1337. </h4>
  1338. <aside class="phpdocumentor-element-found-in">
  1339. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QRGdImage.php"><a href="files/src-output-qrgdimage.html"><abbr title="src/Output/QRGdImage.php">QRGdImage.php</abbr></a></abbr>
  1340. :
  1341. <span class="phpdocumentor-element-found-in__line">257</span>
  1342. </aside>
  1343. <p class="phpdocumentor-summary">Sets the transparency color</p>
  1344. <code class="phpdocumentor-code phpdocumentor-signature ">
  1345. <span class="phpdocumentor-signature__visibility">protected</span>
  1346. <span class="phpdocumentor-signature__name">setTransparencyColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1347. <div class="phpdocumentor-label-line">
  1348. </div>
  1349. </article>
  1350. <article
  1351. class="phpdocumentor-element
  1352. -method
  1353. -protected
  1354. "
  1355. >
  1356. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  1357. toBase64DataURI()
  1358. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  1359. </h4>
  1360. <aside class="phpdocumentor-element-found-in">
  1361. <abbr class="phpdocumentor-element-found-in__file" title="src/Output/QROutputAbstract.php"><a href="files/src-output-qroutputabstract.html"><abbr title="src/Output/QROutputAbstract.php">QROutputAbstract.php</abbr></a></abbr>
  1362. :
  1363. <span class="phpdocumentor-element-found-in__line">138</span>
  1364. </aside>
  1365. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  1366. <code class="phpdocumentor-code phpdocumentor-signature ">
  1367. <span class="phpdocumentor-signature__visibility">protected</span>
  1368. <span class="phpdocumentor-signature__name">toBase64DataURI</span><span>(</span><span class="phpdocumentor-signature__argument"><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$data</span></span><span class="phpdocumentor-signature__argument"><span>, </span><span class="phpdocumentor-signature__argument__return-type">string&nbsp;</span><span class="phpdocumentor-signature__argument__name">$mime</span></span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1369. <div class="phpdocumentor-label-line">
  1370. </div>
  1371. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1372. <dl class="phpdocumentor-argument-list">
  1373. <dt class="phpdocumentor-argument-list__entry">
  1374. <span class="phpdocumentor-signature__argument__name">$data</span>
  1375. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1376. </dt>
  1377. <dd class="phpdocumentor-argument-list__definition">
  1378. </dd>
  1379. <dt class="phpdocumentor-argument-list__entry">
  1380. <span class="phpdocumentor-signature__argument__name">$mime</span>
  1381. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1382. </dt>
  1383. <dd class="phpdocumentor-argument-list__definition">
  1384. </dd>
  1385. </dl>
  1386. <section>
  1387. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1388. <span class="phpdocumentor-signature__response_type">string</span>
  1389. </section>
  1390. </article>
  1391. </section>
  1392. <div class="phpdocumentor-modal" id="source-view">
  1393. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1394. <div class="phpdocumentor-modal-container">
  1395. <div class="phpdocumentor-modal-content">
  1396. <pre style="max-height: 500px; overflow-y: scroll" data-src="files/src/Output/QRGdImage.php.txt" class="language-php line-numbers linkable-line-numbers"></pre>
  1397. </div>
  1398. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1399. </div>
  1400. </div>
  1401. <script type="text/javascript">
  1402. (function () {
  1403. function loadExternalCodeSnippet(el, url, line) {
  1404. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1405. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1406. const language = 'php';
  1407. const code = document.createElement('code');
  1408. code.className = 'language-' + language;
  1409. pre.textContent = '';
  1410. pre.setAttribute('data-line', line)
  1411. code.textContent = 'Loading…';
  1412. pre.appendChild(code);
  1413. var xhr = new XMLHttpRequest();
  1414. xhr.open('GET', src, true);
  1415. xhr.onreadystatechange = function () {
  1416. if (xhr.readyState !== 4) {
  1417. return;
  1418. }
  1419. if (xhr.status < 400 && xhr.responseText) {
  1420. code.textContent = xhr.responseText;
  1421. Prism.highlightElement(code);
  1422. return;
  1423. }
  1424. if (xhr.status === 404) {
  1425. code.textContent = '✖ Error: File could not be found';
  1426. return;
  1427. }
  1428. if (xhr.status >= 400) {
  1429. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1430. return;
  1431. }
  1432. code.textContent = '✖ Error: An unknown error occurred';
  1433. };
  1434. xhr.send(null);
  1435. });
  1436. }
  1437. const modalButtons = document.querySelectorAll("[data-modal]");
  1438. const openedAsLocalFile = window.location.protocol === 'file:';
  1439. if (modalButtons.length > 0 && openedAsLocalFile) {
  1440. console.warn(
  1441. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1442. 'browsers block XHR requests when a page is opened this way'
  1443. );
  1444. }
  1445. modalButtons.forEach(function (trigger) {
  1446. if (openedAsLocalFile) {
  1447. trigger.setAttribute("hidden", "hidden");
  1448. }
  1449. trigger.addEventListener("click", function (event) {
  1450. event.preventDefault();
  1451. const modal = document.getElementById(trigger.dataset.modal);
  1452. if (!modal) {
  1453. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1454. return;
  1455. }
  1456. modal.classList.add("phpdocumentor-modal__open");
  1457. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1458. const exits = modal.querySelectorAll("[data-exit-button]");
  1459. exits.forEach(function (exit) {
  1460. exit.addEventListener("click", function (event) {
  1461. event.preventDefault();
  1462. modal.classList.remove("phpdocumentor-modal__open");
  1463. });
  1464. });
  1465. });
  1466. });
  1467. })();
  1468. </script>
  1469. </article>
  1470. </section>
  1471. <section class="phpdocumentor-on-this-page__sidebar">
  1472. <section class="phpdocumentor-on-this-page__content">
  1473. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1474. <ul class="phpdocumentor-list -clean">
  1475. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1476. <li>
  1477. <ul class="phpdocumentor-list -clean">
  1478. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-properties">Properties</a></li>
  1479. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-methods">Methods</a></li>
  1480. </ul>
  1481. </li>
  1482. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1483. <li>
  1484. <ul class="phpdocumentor-list -clean">
  1485. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background">$background<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1486. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image">$image<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1487. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1488. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1489. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1490. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1491. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1492. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1493. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled">$upscaled<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1494. </ul>
  1495. </li>
  1496. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1497. <li>
  1498. <ul class="phpdocumentor-list -clean">
  1499. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct">__construct()</a></li>
  1500. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump">dump()</a></li>
  1501. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  1502. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD">checkGD()</a></li>
  1503. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a></li>
  1504. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage">createImage()</a></li>
  1505. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage">drawImage()</a></li>
  1506. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage">dumpImage()</a></li>
  1507. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue">getDefaultModuleValue()</a></li>
  1508. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a></li>
  1509. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a></li>
  1510. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module">module()</a></li>
  1511. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue">prepareModuleValue()</a></li>
  1512. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a></li>
  1513. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor">setBgColor()</a></li>
  1514. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a></li>
  1515. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a></li>
  1516. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor">setTransparencyColor()</a></li>
  1517. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a></li>
  1518. </ul>
  1519. </li>
  1520. </ul>
  1521. </section>
  1522. </section>
  1523. </div>
  1524. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1525. <section class="phpdocumentor-search-results__dialog">
  1526. <header class="phpdocumentor-search-results__header">
  1527. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1528. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1529. </header>
  1530. <section class="phpdocumentor-search-results__body">
  1531. <ul class="phpdocumentor-search-results__entries"></ul>
  1532. </section>
  1533. </section>
  1534. </section>
  1535. </div>
  1536. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1537. </main>
  1538. <script>
  1539. cssVars({});
  1540. </script>
  1541. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1542. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1543. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1544. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1545. </body>
  1546. </html>