chillerlan-QRCode-Output-QRGdImage.html 119 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478
  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-QROutputAbstract.html#property_circleRadius">$circleRadius</a>
  156. <span>
  157. &nbsp;: float </span>
  158. </dt>
  159. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  160. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths</a>
  161. <span>
  162. &nbsp;: bool </span>
  163. </dt>
  164. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  165. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules</a>
  166. <span>
  167. &nbsp;: bool </span>
  168. </dt>
  169. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  170. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules</a>
  171. <span>
  172. &nbsp;: bool </span>
  173. </dt>
  174. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  175. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol</a>
  176. <span>
  177. &nbsp;: string </span>
  178. </dt>
  179. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  180. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect</a>
  181. <span>
  182. &nbsp;: array&lt;string|int, mixed&gt; </span>
  183. </dt>
  184. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  185. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image">$image</a>
  186. <span>
  187. &nbsp;: resource|<abbr title="\GdImage">GdImage</abbr> </span>
  188. </dt>
  189. <dd>The GD image resource</dd>
  190. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  191. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare</a>
  192. <span>
  193. &nbsp;: array&lt;string|int, mixed&gt; </span>
  194. </dt>
  195. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  196. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length</a>
  197. <span>
  198. &nbsp;: int </span>
  199. </dt>
  200. <dd>the side length of the QR image (modules * scale)</dd>
  201. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  202. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix</a>
  203. <span>
  204. &nbsp;: <a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a> </span>
  205. </dt>
  206. <dd>the (filled) data matrix object</dd>
  207. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  208. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount</a>
  209. <span>
  210. &nbsp;: int </span>
  211. </dt>
  212. <dd>the current size of the QR matrix</dd>
  213. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  214. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues</a>
  215. <span>
  216. &nbsp;: array&lt;string|int, mixed&gt; </span>
  217. </dt>
  218. <dd>an (optional) array of color values for the several QR matrix parts</dd>
  219. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  220. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options</a>
  221. <span>
  222. &nbsp;: <abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr>|<a href="classes/chillerlan-QRCode-QROptions.html"><abbr title="\chillerlan\QRCode\QROptions">QROptions</abbr></a> </span>
  223. </dt>
  224. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  225. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale</a>
  226. <span>
  227. &nbsp;: int </span>
  228. </dt>
  229. <dt class="phpdocumentor-table-of-contents__entry -property -protected">
  230. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled">$upscaled</a>
  231. <span>
  232. &nbsp;: bool </span>
  233. </dt>
  234. <dd>Whether we&#039;re running in upscale mode (scale &lt; 20)</dd>
  235. </dl>
  236. <h4 id="toc-methods">
  237. Methods
  238. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-methods" class="headerlink"><i class="fas fa-link"></i></a>
  239. </h4>
  240. <dl class="phpdocumentor-table-of-contents">
  241. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  242. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct">__construct()</a>
  243. <span>
  244. &nbsp;: mixed </span>
  245. </dt>
  246. <dd>QROutputAbstract constructor.</dd>
  247. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  248. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump">dump()</a>
  249. <span>
  250. &nbsp;: string|resource|<abbr title="\GdImage">GdImage</abbr> </span>
  251. </dt>
  252. <dt class="phpdocumentor-table-of-contents__entry -method -public">
  253. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid">moduleValueIsValid()</a>
  254. <span>
  255. &nbsp;: bool </span>
  256. </dt>
  257. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  258. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD">checkGD()</a>
  259. <span>
  260. &nbsp;: void </span>
  261. </dt>
  262. <dd>Checks whether GD is installed and if the given mode is supported</dd>
  263. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  264. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a>
  265. <span>
  266. &nbsp;: array&lt;string|int, mixed&gt; </span>
  267. </dt>
  268. <dd>collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  269. returns an array with the transformed modules</dd>
  270. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  271. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a>
  272. <span>
  273. &nbsp;: void </span>
  274. </dt>
  275. <dd>Creates copies of several QROptions values to avoid calling the magic getters
  276. in long loops for a significant performance increase.</dd>
  277. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  278. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage">createImage()</a>
  279. <span>
  280. &nbsp;: <abbr title="\GdImage">GdImage</abbr>|resource </span>
  281. </dt>
  282. <dd>Creates a new GdImage resource and scales it if necessary</dd>
  283. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  284. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage">drawImage()</a>
  285. <span>
  286. &nbsp;: void </span>
  287. </dt>
  288. <dd>Draws the QR image</dd>
  289. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  290. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage">dumpImage()</a>
  291. <span>
  292. &nbsp;: string </span>
  293. </dt>
  294. <dd>Creates the final image by calling the desired GD output function</dd>
  295. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  296. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue">getDefaultModuleValue()</a>
  297. <span>
  298. &nbsp;: mixed|null </span>
  299. </dt>
  300. <dd>Returns a default value for either dark or light modules</dd>
  301. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  302. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a>
  303. <span>
  304. &nbsp;: mixed </span>
  305. </dt>
  306. <dd>Returns the prepared value for the given $M_TYPE</dd>
  307. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  308. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a>
  309. <span>
  310. &nbsp;: mixed|null </span>
  311. </dt>
  312. <dd>Returns the prepared module value at the given coordinate [$x, $y] (convenience)</dd>
  313. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  314. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions">getOutputDimensions()</a>
  315. <span>
  316. &nbsp;: array&lt;string|int, mixed&gt; </span>
  317. </dt>
  318. <dd>Returns a 2 element array with the current output width and height</dd>
  319. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  320. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module">module()</a>
  321. <span>
  322. &nbsp;: void </span>
  323. </dt>
  324. <dd>Creates a single QR pixel with the given settings</dd>
  325. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  326. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue">prepareModuleValue()</a>
  327. <span>
  328. &nbsp;: mixed|null </span>
  329. </dt>
  330. <dd>Prepares the value for the given input ()</dd>
  331. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  332. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a>
  333. <span>
  334. &nbsp;: void </span>
  335. </dt>
  336. <dd>Saves the qr $data to a $file. If $file is null, nothing happens.</dd>
  337. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  338. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor">setBgColor()</a>
  339. <span>
  340. &nbsp;: void </span>
  341. </dt>
  342. <dd>Sets the background color</dd>
  343. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  344. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a>
  345. <span>
  346. &nbsp;: void </span>
  347. </dt>
  348. <dd>Sets/updates the matrix dimensions</dd>
  349. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  350. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a>
  351. <span>
  352. &nbsp;: void </span>
  353. </dt>
  354. <dd>Sets the initial module values</dd>
  355. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  356. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor">setTransparencyColor()</a>
  357. <span>
  358. &nbsp;: void </span>
  359. </dt>
  360. <dd>Sets the transparency color</dd>
  361. <dt class="phpdocumentor-table-of-contents__entry -method -protected">
  362. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a>
  363. <span>
  364. &nbsp;: string </span>
  365. </dt>
  366. <dd>Returns a base64 data URI for the given string and mime type</dd>
  367. </dl>
  368. <section class="phpdocumentor-properties">
  369. <h3 class="phpdocumentor-elements__header" id="properties">
  370. Properties
  371. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#properties" class="headerlink"><i class="fas fa-link"></i></a>
  372. </h3>
  373. <article
  374. class="
  375. phpdocumentor-element
  376. -property
  377. -protected
  378. "
  379. >
  380. <h4 class="phpdocumentor-element__name" id="property_background">
  381. $background
  382. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background" class="headerlink"><i class="fas fa-link"></i></a>
  383. <span class="phpdocumentor-element__modifiers">
  384. </span>
  385. </h4>
  386. <aside class="phpdocumentor-element-found-in">
  387. <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>
  388. :
  389. <span class="phpdocumentor-element-found-in__line">44</span>
  390. </aside>
  391. <p class="phpdocumentor-summary">The allocated background color</p>
  392. <code class="phpdocumentor-code phpdocumentor-signature ">
  393. <span class="phpdocumentor-signature__visibility">protected</span>
  394. <span class="phpdocumentor-signature__type">int</span>
  395. <span class="phpdocumentor-signature__name">$background</span>
  396. </code>
  397. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  398. Tags
  399. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background#tags" class="headerlink"><i class="fas fa-link"></i></a>
  400. </h5>
  401. <dl class="phpdocumentor-tag-list">
  402. <dt class="phpdocumentor-tag-list__entry">
  403. <span class="phpdocumentor-tag__name">see</span>
  404. </dt>
  405. <dd class="phpdocumentor-tag-list__definition">
  406. <span class="phpdocumentor-tag-link"><abbr title="\imagecolorallocate()">imagecolorallocate()</abbr></span>
  407. </dd>
  408. </dl>
  409. </article>
  410. <article
  411. class="
  412. phpdocumentor-element
  413. -property
  414. -protected
  415. "
  416. >
  417. <h4 class="phpdocumentor-element__name" id="property_circleRadius">
  418. $circleRadius
  419. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius" class="headerlink"><i class="fas fa-link"></i></a>
  420. <span class="phpdocumentor-element__modifiers">
  421. </span>
  422. </h4>
  423. <aside class="phpdocumentor-element-found-in">
  424. <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>
  425. :
  426. <span class="phpdocumentor-element-found-in__line">65</span>
  427. </aside>
  428. <code class="phpdocumentor-code phpdocumentor-signature ">
  429. <span class="phpdocumentor-signature__visibility">protected</span>
  430. <span class="phpdocumentor-signature__type">float</span>
  431. <span class="phpdocumentor-signature__name">$circleRadius</span>
  432. </code>
  433. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  434. Tags
  435. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius#tags" class="headerlink"><i class="fas fa-link"></i></a>
  436. </h5>
  437. <dl class="phpdocumentor-tag-list">
  438. <dt class="phpdocumentor-tag-list__entry">
  439. <span class="phpdocumentor-tag__name">see</span>
  440. </dt>
  441. <dd class="phpdocumentor-tag-list__definition">
  442. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$circleRadius">QROptions::$circleRadius</abbr></span>
  443. </dd>
  444. </dl>
  445. </article>
  446. <article
  447. class="
  448. phpdocumentor-element
  449. -property
  450. -protected
  451. "
  452. >
  453. <h4 class="phpdocumentor-element__name" id="property_connectPaths">
  454. $connectPaths
  455. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths" class="headerlink"><i class="fas fa-link"></i></a>
  456. <span class="phpdocumentor-element__modifiers">
  457. </span>
  458. </h4>
  459. <aside class="phpdocumentor-element-found-in">
  460. <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>
  461. :
  462. <span class="phpdocumentor-element-found-in__line">53</span>
  463. </aside>
  464. <code class="phpdocumentor-code phpdocumentor-signature ">
  465. <span class="phpdocumentor-signature__visibility">protected</span>
  466. <span class="phpdocumentor-signature__type">bool</span>
  467. <span class="phpdocumentor-signature__name">$connectPaths</span>
  468. </code>
  469. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  470. Tags
  471. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths#tags" class="headerlink"><i class="fas fa-link"></i></a>
  472. </h5>
  473. <dl class="phpdocumentor-tag-list">
  474. <dt class="phpdocumentor-tag-list__entry">
  475. <span class="phpdocumentor-tag__name">see</span>
  476. </dt>
  477. <dd class="phpdocumentor-tag-list__definition">
  478. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$connectPaths">QROptions::$connectPaths</abbr></span>
  479. </dd>
  480. </dl>
  481. </article>
  482. <article
  483. class="
  484. phpdocumentor-element
  485. -property
  486. -protected
  487. "
  488. >
  489. <h4 class="phpdocumentor-element__name" id="property_drawCircularModules">
  490. $drawCircularModules
  491. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules" class="headerlink"><i class="fas fa-link"></i></a>
  492. <span class="phpdocumentor-element__modifiers">
  493. </span>
  494. </h4>
  495. <aside class="phpdocumentor-element-found-in">
  496. <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>
  497. :
  498. <span class="phpdocumentor-element-found-in__line">61</span>
  499. </aside>
  500. <code class="phpdocumentor-code phpdocumentor-signature ">
  501. <span class="phpdocumentor-signature__visibility">protected</span>
  502. <span class="phpdocumentor-signature__type">bool</span>
  503. <span class="phpdocumentor-signature__name">$drawCircularModules</span>
  504. </code>
  505. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  506. Tags
  507. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  508. </h5>
  509. <dl class="phpdocumentor-tag-list">
  510. <dt class="phpdocumentor-tag-list__entry">
  511. <span class="phpdocumentor-tag__name">see</span>
  512. </dt>
  513. <dd class="phpdocumentor-tag-list__definition">
  514. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  515. </dd>
  516. </dl>
  517. </article>
  518. <article
  519. class="
  520. phpdocumentor-element
  521. -property
  522. -protected
  523. "
  524. >
  525. <h4 class="phpdocumentor-element__name" id="property_drawLightModules">
  526. $drawLightModules
  527. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules" class="headerlink"><i class="fas fa-link"></i></a>
  528. <span class="phpdocumentor-element__modifiers">
  529. </span>
  530. </h4>
  531. <aside class="phpdocumentor-element-found-in">
  532. <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>
  533. :
  534. <span class="phpdocumentor-element-found-in__line">59</span>
  535. </aside>
  536. <code class="phpdocumentor-code phpdocumentor-signature ">
  537. <span class="phpdocumentor-signature__visibility">protected</span>
  538. <span class="phpdocumentor-signature__type">bool</span>
  539. <span class="phpdocumentor-signature__name">$drawLightModules</span>
  540. </code>
  541. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  542. Tags
  543. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules#tags" class="headerlink"><i class="fas fa-link"></i></a>
  544. </h5>
  545. <dl class="phpdocumentor-tag-list">
  546. <dt class="phpdocumentor-tag-list__entry">
  547. <span class="phpdocumentor-tag__name">see</span>
  548. </dt>
  549. <dd class="phpdocumentor-tag-list__definition">
  550. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawLightModules">QROptions::$drawLightModules</abbr></span>
  551. </dd>
  552. </dl>
  553. </article>
  554. <article
  555. class="
  556. phpdocumentor-element
  557. -property
  558. -protected
  559. "
  560. >
  561. <h4 class="phpdocumentor-element__name" id="property_eol">
  562. $eol
  563. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol" class="headerlink"><i class="fas fa-link"></i></a>
  564. <span class="phpdocumentor-element__modifiers">
  565. </span>
  566. </h4>
  567. <aside class="phpdocumentor-element-found-in">
  568. <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>
  569. :
  570. <span class="phpdocumentor-element-found-in__line">57</span>
  571. </aside>
  572. <code class="phpdocumentor-code phpdocumentor-signature ">
  573. <span class="phpdocumentor-signature__visibility">protected</span>
  574. <span class="phpdocumentor-signature__type">string</span>
  575. <span class="phpdocumentor-signature__name">$eol</span>
  576. </code>
  577. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  578. Tags
  579. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol#tags" class="headerlink"><i class="fas fa-link"></i></a>
  580. </h5>
  581. <dl class="phpdocumentor-tag-list">
  582. <dt class="phpdocumentor-tag-list__entry">
  583. <span class="phpdocumentor-tag__name">see</span>
  584. </dt>
  585. <dd class="phpdocumentor-tag-list__definition">
  586. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$eol">QROptions::$eol</abbr></span>
  587. </dd>
  588. </dl>
  589. </article>
  590. <article
  591. class="
  592. phpdocumentor-element
  593. -property
  594. -protected
  595. "
  596. >
  597. <h4 class="phpdocumentor-element__name" id="property_excludeFromConnect">
  598. $excludeFromConnect
  599. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect" class="headerlink"><i class="fas fa-link"></i></a>
  600. <span class="phpdocumentor-element__modifiers">
  601. </span>
  602. </h4>
  603. <aside class="phpdocumentor-element-found-in">
  604. <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>
  605. :
  606. <span class="phpdocumentor-element-found-in__line">55</span>
  607. </aside>
  608. <code class="phpdocumentor-code phpdocumentor-signature ">
  609. <span class="phpdocumentor-signature__visibility">protected</span>
  610. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  611. <span class="phpdocumentor-signature__name">$excludeFromConnect</span>
  612. </code>
  613. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  614. Tags
  615. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect#tags" class="headerlink"><i class="fas fa-link"></i></a>
  616. </h5>
  617. <dl class="phpdocumentor-tag-list">
  618. <dt class="phpdocumentor-tag-list__entry">
  619. <span class="phpdocumentor-tag__name">see</span>
  620. </dt>
  621. <dd class="phpdocumentor-tag-list__definition">
  622. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$excludeFromConnect">QROptions::$excludeFromConnect</abbr></span>
  623. </dd>
  624. </dl>
  625. </article>
  626. <article
  627. class="
  628. phpdocumentor-element
  629. -property
  630. -protected
  631. "
  632. >
  633. <h4 class="phpdocumentor-element__name" id="property_image">
  634. $image
  635. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image" class="headerlink"><i class="fas fa-link"></i></a>
  636. <span class="phpdocumentor-element__modifiers">
  637. </span>
  638. </h4>
  639. <aside class="phpdocumentor-element-found-in">
  640. <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>
  641. :
  642. <span class="phpdocumentor-element-found-in__line">37</span>
  643. </aside>
  644. <p class="phpdocumentor-summary">The GD image resource</p>
  645. <code class="phpdocumentor-code phpdocumentor-signature ">
  646. <span class="phpdocumentor-signature__visibility">protected</span>
  647. <span class="phpdocumentor-signature__type">resource|<abbr title="\GdImage">GdImage</abbr></span>
  648. <span class="phpdocumentor-signature__name">$image</span>
  649. </code>
  650. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  651. Tags
  652. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image#tags" class="headerlink"><i class="fas fa-link"></i></a>
  653. </h5>
  654. <dl class="phpdocumentor-tag-list">
  655. <dt class="phpdocumentor-tag-list__entry">
  656. <span class="phpdocumentor-tag__name">see</span>
  657. </dt>
  658. <dd class="phpdocumentor-tag-list__definition">
  659. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\imagecreatetruecolor()">imagecreatetruecolor()</abbr></span>
  660. </dd>
  661. </dl>
  662. </article>
  663. <article
  664. class="
  665. phpdocumentor-element
  666. -property
  667. -protected
  668. "
  669. >
  670. <h4 class="phpdocumentor-element__name" id="property_keepAsSquare">
  671. $keepAsSquare
  672. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare" class="headerlink"><i class="fas fa-link"></i></a>
  673. <span class="phpdocumentor-element__modifiers">
  674. </span>
  675. </h4>
  676. <aside class="phpdocumentor-element-found-in">
  677. <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>
  678. :
  679. <span class="phpdocumentor-element-found-in__line">63</span>
  680. </aside>
  681. <code class="phpdocumentor-code phpdocumentor-signature ">
  682. <span class="phpdocumentor-signature__visibility">protected</span>
  683. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  684. <span class="phpdocumentor-signature__name">$keepAsSquare</span>
  685. </code>
  686. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  687. Tags
  688. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare#tags" class="headerlink"><i class="fas fa-link"></i></a>
  689. </h5>
  690. <dl class="phpdocumentor-tag-list">
  691. <dt class="phpdocumentor-tag-list__entry">
  692. <span class="phpdocumentor-tag__name">see</span>
  693. </dt>
  694. <dd class="phpdocumentor-tag-list__definition">
  695. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$keepAsSquare">QROptions::$keepAsSquare</abbr></span>
  696. </dd>
  697. </dl>
  698. </article>
  699. <article
  700. class="
  701. phpdocumentor-element
  702. -property
  703. -protected
  704. "
  705. >
  706. <h4 class="phpdocumentor-element__name" id="property_length">
  707. $length
  708. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length" class="headerlink"><i class="fas fa-link"></i></a>
  709. <span class="phpdocumentor-element__modifiers">
  710. </span>
  711. </h4>
  712. <aside class="phpdocumentor-element-found-in">
  713. <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>
  714. :
  715. <span class="phpdocumentor-element-found-in__line">33</span>
  716. </aside>
  717. <p class="phpdocumentor-summary">the side length of the QR image (modules * scale)</p>
  718. <code class="phpdocumentor-code phpdocumentor-signature ">
  719. <span class="phpdocumentor-signature__visibility">protected</span>
  720. <span class="phpdocumentor-signature__type">int</span>
  721. <span class="phpdocumentor-signature__name">$length</span>
  722. </code>
  723. </article>
  724. <article
  725. class="
  726. phpdocumentor-element
  727. -property
  728. -protected
  729. "
  730. >
  731. <h4 class="phpdocumentor-element__name" id="property_matrix">
  732. $matrix
  733. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix" class="headerlink"><i class="fas fa-link"></i></a>
  734. <span class="phpdocumentor-element__modifiers">
  735. </span>
  736. </h4>
  737. <aside class="phpdocumentor-element-found-in">
  738. <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>
  739. :
  740. <span class="phpdocumentor-element-found-in__line">43</span>
  741. </aside>
  742. <p class="phpdocumentor-summary">the (filled) data matrix object</p>
  743. <code class="phpdocumentor-code phpdocumentor-signature ">
  744. <span class="phpdocumentor-signature__visibility">protected</span>
  745. <span class="phpdocumentor-signature__type"><a href="classes/chillerlan-QRCode-Data-QRMatrix.html"><abbr title="\chillerlan\QRCode\Data\QRMatrix">QRMatrix</abbr></a></span>
  746. <span class="phpdocumentor-signature__name">$matrix</span>
  747. </code>
  748. </article>
  749. <article
  750. class="
  751. phpdocumentor-element
  752. -property
  753. -protected
  754. "
  755. >
  756. <h4 class="phpdocumentor-element__name" id="property_moduleCount">
  757. $moduleCount
  758. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount" class="headerlink"><i class="fas fa-link"></i></a>
  759. <span class="phpdocumentor-element__modifiers">
  760. </span>
  761. </h4>
  762. <aside class="phpdocumentor-element-found-in">
  763. <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>
  764. :
  765. <span class="phpdocumentor-element-found-in__line">28</span>
  766. </aside>
  767. <p class="phpdocumentor-summary">the current size of the QR matrix</p>
  768. <code class="phpdocumentor-code phpdocumentor-signature ">
  769. <span class="phpdocumentor-signature__visibility">protected</span>
  770. <span class="phpdocumentor-signature__type">int</span>
  771. <span class="phpdocumentor-signature__name">$moduleCount</span>
  772. </code>
  773. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  774. Tags
  775. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount#tags" class="headerlink"><i class="fas fa-link"></i></a>
  776. </h5>
  777. <dl class="phpdocumentor-tag-list">
  778. <dt class="phpdocumentor-tag-list__entry">
  779. <span class="phpdocumentor-tag__name">see</span>
  780. </dt>
  781. <dd class="phpdocumentor-tag-list__definition">
  782. <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>
  783. </dd>
  784. </dl>
  785. </article>
  786. <article
  787. class="
  788. phpdocumentor-element
  789. -property
  790. -protected
  791. "
  792. >
  793. <h4 class="phpdocumentor-element__name" id="property_moduleValues">
  794. $moduleValues
  795. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues" class="headerlink"><i class="fas fa-link"></i></a>
  796. <span class="phpdocumentor-element__modifiers">
  797. </span>
  798. </h4>
  799. <aside class="phpdocumentor-element-found-in">
  800. <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>
  801. :
  802. <span class="phpdocumentor-element-found-in__line">38</span>
  803. </aside>
  804. <p class="phpdocumentor-summary">an (optional) array of color values for the several QR matrix parts</p>
  805. <code class="phpdocumentor-code phpdocumentor-signature ">
  806. <span class="phpdocumentor-signature__visibility">protected</span>
  807. <span class="phpdocumentor-signature__type">array&lt;string|int, mixed&gt;</span>
  808. <span class="phpdocumentor-signature__name">$moduleValues</span>
  809. </code>
  810. </article>
  811. <article
  812. class="
  813. phpdocumentor-element
  814. -property
  815. -protected
  816. "
  817. >
  818. <h4 class="phpdocumentor-element__name" id="property_options">
  819. $options
  820. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options" class="headerlink"><i class="fas fa-link"></i></a>
  821. <span class="phpdocumentor-element__modifiers">
  822. </span>
  823. </h4>
  824. <aside class="phpdocumentor-element-found-in">
  825. <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>
  826. :
  827. <span class="phpdocumentor-element-found-in__line">48</span>
  828. </aside>
  829. <code class="phpdocumentor-code phpdocumentor-signature ">
  830. <span class="phpdocumentor-signature__visibility">protected</span>
  831. <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>
  832. <span class="phpdocumentor-signature__name">$options</span>
  833. </code>
  834. </article>
  835. <article
  836. class="
  837. phpdocumentor-element
  838. -property
  839. -protected
  840. "
  841. >
  842. <h4 class="phpdocumentor-element__name" id="property_scale">
  843. $scale
  844. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale" class="headerlink"><i class="fas fa-link"></i></a>
  845. <span class="phpdocumentor-element__modifiers">
  846. </span>
  847. </h4>
  848. <aside class="phpdocumentor-element-found-in">
  849. <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>
  850. :
  851. <span class="phpdocumentor-element-found-in__line">51</span>
  852. </aside>
  853. <code class="phpdocumentor-code phpdocumentor-signature ">
  854. <span class="phpdocumentor-signature__visibility">protected</span>
  855. <span class="phpdocumentor-signature__type">int</span>
  856. <span class="phpdocumentor-signature__name">$scale</span>
  857. </code>
  858. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  859. Tags
  860. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale#tags" class="headerlink"><i class="fas fa-link"></i></a>
  861. </h5>
  862. <dl class="phpdocumentor-tag-list">
  863. <dt class="phpdocumentor-tag-list__entry">
  864. <span class="phpdocumentor-tag__name">see</span>
  865. </dt>
  866. <dd class="phpdocumentor-tag-list__definition">
  867. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$scale">QROptions::$scale</abbr></span>
  868. </dd>
  869. </dl>
  870. </article>
  871. <article
  872. class="
  873. phpdocumentor-element
  874. -property
  875. -protected
  876. "
  877. >
  878. <h4 class="phpdocumentor-element__name" id="property_upscaled">
  879. $upscaled
  880. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled" class="headerlink"><i class="fas fa-link"></i></a>
  881. <span class="phpdocumentor-element__modifiers">
  882. </span>
  883. </h4>
  884. <aside class="phpdocumentor-element-found-in">
  885. <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>
  886. :
  887. <span class="phpdocumentor-element-found-in__line">51</span>
  888. </aside>
  889. <p class="phpdocumentor-summary">Whether we&#039;re running in upscale mode (scale &lt; 20)</p>
  890. <code class="phpdocumentor-code phpdocumentor-signature ">
  891. <span class="phpdocumentor-signature__visibility">protected</span>
  892. <span class="phpdocumentor-signature__type">bool</span>
  893. <span class="phpdocumentor-signature__name">$upscaled</span>
  894. = <span class="phpdocumentor-signature__default-value">false</span></code>
  895. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  896. Tags
  897. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled#tags" class="headerlink"><i class="fas fa-link"></i></a>
  898. </h5>
  899. <dl class="phpdocumentor-tag-list">
  900. <dt class="phpdocumentor-tag-list__entry">
  901. <span class="phpdocumentor-tag__name">see</span>
  902. </dt>
  903. <dd class="phpdocumentor-tag-list__definition">
  904. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$drawCircularModules">QROptions::$drawCircularModules</abbr></span>
  905. </dd>
  906. </dl>
  907. </article>
  908. </section>
  909. <section class="phpdocumentor-methods">
  910. <h3 class="phpdocumentor-elements__header" id="methods">
  911. Methods
  912. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#methods" class="headerlink"><i class="fas fa-link"></i></a>
  913. </h3>
  914. <article
  915. class="phpdocumentor-element
  916. -method
  917. -public
  918. "
  919. >
  920. <h4 class="phpdocumentor-element__name" id="method___construct">
  921. __construct()
  922. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct" class="headerlink"><i class="fas fa-link"></i></a>
  923. </h4>
  924. <aside class="phpdocumentor-element-found-in">
  925. <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>
  926. :
  927. <span class="phpdocumentor-element-found-in__line">59</span>
  928. </aside>
  929. <p class="phpdocumentor-summary">QROutputAbstract constructor.</p>
  930. <code class="phpdocumentor-code phpdocumentor-signature ">
  931. <span class="phpdocumentor-signature__visibility">public</span>
  932. <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>
  933. <div class="phpdocumentor-label-line">
  934. </div>
  935. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  936. <dl class="phpdocumentor-argument-list">
  937. <dt class="phpdocumentor-argument-list__entry">
  938. <span class="phpdocumentor-signature__argument__name">$options</span>
  939. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\chillerlan\Settings\SettingsContainerInterface">SettingsContainerInterface</abbr></span>
  940. </dt>
  941. <dd class="phpdocumentor-argument-list__definition">
  942. </dd>
  943. <dt class="phpdocumentor-argument-list__entry">
  944. <span class="phpdocumentor-signature__argument__name">$matrix</span>
  945. : <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>
  946. </dt>
  947. <dd class="phpdocumentor-argument-list__definition">
  948. </dd>
  949. </dl>
  950. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  951. Tags
  952. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct#tags" class="headerlink"><i class="fas fa-link"></i></a>
  953. </h5>
  954. <dl class="phpdocumentor-tag-list">
  955. <dt class="phpdocumentor-tag-list__entry">
  956. <span class="phpdocumentor-tag__name">inheritDoc</span>
  957. </dt>
  958. <dd class="phpdocumentor-tag-list__definition">
  959. </dd>
  960. <dt class="phpdocumentor-tag-list__entry">
  961. <span class="phpdocumentor-tag__name">throws</span>
  962. </dt>
  963. <dd class="phpdocumentor-tag-list__definition">
  964. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  965. </dd>
  966. <dt class="phpdocumentor-tag-list__entry">
  967. <span class="phpdocumentor-tag__name">noinspection</span>
  968. </dt>
  969. <dd class="phpdocumentor-tag-list__definition">
  970. <section class="phpdocumentor-description"><p>PhpMissingParentConstructorInspection</p>
  971. </section>
  972. </dd>
  973. </dl>
  974. </article>
  975. <article
  976. class="phpdocumentor-element
  977. -method
  978. -public
  979. "
  980. >
  981. <h4 class="phpdocumentor-element__name" id="method_dump">
  982. dump()
  983. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump" class="headerlink"><i class="fas fa-link"></i></a>
  984. </h4>
  985. <aside class="phpdocumentor-element-found-in">
  986. <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>
  987. :
  988. <span class="phpdocumentor-element-found-in__line">176</span>
  989. </aside>
  990. <code class="phpdocumentor-code phpdocumentor-signature ">
  991. <span class="phpdocumentor-signature__visibility">public</span>
  992. <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>
  993. <div class="phpdocumentor-label-line">
  994. </div>
  995. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  996. <dl class="phpdocumentor-argument-list">
  997. <dt class="phpdocumentor-argument-list__entry">
  998. <span class="phpdocumentor-signature__argument__name">$file</span>
  999. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1000. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1001. <dd class="phpdocumentor-argument-list__definition">
  1002. </dd>
  1003. </dl>
  1004. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1005. Tags
  1006. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1007. </h5>
  1008. <dl class="phpdocumentor-tag-list">
  1009. <dt class="phpdocumentor-tag-list__entry">
  1010. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1011. </dt>
  1012. <dd class="phpdocumentor-tag-list__definition">
  1013. </dd>
  1014. <dt class="phpdocumentor-tag-list__entry">
  1015. <span class="phpdocumentor-tag__name">phan-suppress</span>
  1016. </dt>
  1017. <dd class="phpdocumentor-tag-list__definition">
  1018. <section class="phpdocumentor-description"><p>PhanUndeclaredTypeReturnType, PhanTypeMismatchReturn</p>
  1019. </section>
  1020. </dd>
  1021. <dt class="phpdocumentor-tag-list__entry">
  1022. <span class="phpdocumentor-tag__name">throws</span>
  1023. </dt>
  1024. <dd class="phpdocumentor-tag-list__definition">
  1025. <span class="phpdocumentor-tag-link"><abbr title="\ErrorException">ErrorException</abbr></span>
  1026. </dd>
  1027. </dl>
  1028. <section>
  1029. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1030. <span class="phpdocumentor-signature__response_type">string|resource|<abbr title="\GdImage">GdImage</abbr></span>
  1031. </section>
  1032. </article>
  1033. <article
  1034. class="phpdocumentor-element
  1035. -method
  1036. -public
  1037. -static "
  1038. >
  1039. <h4 class="phpdocumentor-element__name" id="method_moduleValueIsValid">
  1040. moduleValueIsValid()
  1041. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid" class="headerlink"><i class="fas fa-link"></i></a>
  1042. </h4>
  1043. <aside class="phpdocumentor-element-found-in">
  1044. <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>
  1045. :
  1046. <span class="phpdocumentor-element-found-in__line">111</span>
  1047. </aside>
  1048. <code class="phpdocumentor-code phpdocumentor-signature ">
  1049. <span class="phpdocumentor-signature__visibility">public</span>
  1050. <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>
  1051. <div class="phpdocumentor-label-line">
  1052. </div>
  1053. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1054. <dl class="phpdocumentor-argument-list">
  1055. <dt class="phpdocumentor-argument-list__entry">
  1056. <span class="phpdocumentor-signature__argument__name">$value</span>
  1057. : <span class="phpdocumentor-signature__argument__return-type">mixed</span>
  1058. </dt>
  1059. <dd class="phpdocumentor-argument-list__definition">
  1060. </dd>
  1061. </dl>
  1062. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1063. Tags
  1064. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1065. </h5>
  1066. <dl class="phpdocumentor-tag-list">
  1067. <dt class="phpdocumentor-tag-list__entry">
  1068. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1069. </dt>
  1070. <dd class="phpdocumentor-tag-list__definition">
  1071. </dd>
  1072. </dl>
  1073. <section>
  1074. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1075. <span class="phpdocumentor-signature__response_type">bool</span>
  1076. </section>
  1077. </article>
  1078. <article
  1079. class="phpdocumentor-element
  1080. -method
  1081. -protected
  1082. "
  1083. >
  1084. <h4 class="phpdocumentor-element__name" id="method_checkGD">
  1085. checkGD()
  1086. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD" class="headerlink"><i class="fas fa-link"></i></a>
  1087. </h4>
  1088. <aside class="phpdocumentor-element-found-in">
  1089. <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>
  1090. :
  1091. <span class="phpdocumentor-element-found-in__line">80</span>
  1092. </aside>
  1093. <p class="phpdocumentor-summary">Checks whether GD is installed and if the given mode is supported</p>
  1094. <code class="phpdocumentor-code phpdocumentor-signature ">
  1095. <span class="phpdocumentor-signature__visibility">protected</span>
  1096. <span class="phpdocumentor-signature__name">checkGD</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1097. <div class="phpdocumentor-label-line">
  1098. </div>
  1099. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1100. Tags
  1101. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1102. </h5>
  1103. <dl class="phpdocumentor-tag-list">
  1104. <dt class="phpdocumentor-tag-list__entry">
  1105. <span class="phpdocumentor-tag__name">throws</span>
  1106. </dt>
  1107. <dd class="phpdocumentor-tag-list__definition">
  1108. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1109. </dd>
  1110. <dt class="phpdocumentor-tag-list__entry">
  1111. <span class="phpdocumentor-tag__name">codeCoverageIgnore</span>
  1112. </dt>
  1113. <dd class="phpdocumentor-tag-list__definition">
  1114. </dd>
  1115. </dl>
  1116. </article>
  1117. <article
  1118. class="phpdocumentor-element
  1119. -method
  1120. -protected
  1121. "
  1122. >
  1123. <h4 class="phpdocumentor-element__name" id="method_collectModules">
  1124. collectModules()
  1125. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules" class="headerlink"><i class="fas fa-link"></i></a>
  1126. </h4>
  1127. <aside class="phpdocumentor-element-found-in">
  1128. <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>
  1129. :
  1130. <span class="phpdocumentor-element-found-in__line">227</span>
  1131. </aside>
  1132. <p class="phpdocumentor-summary">collects the modules per QRMatrix::M_* type and runs a $transform function on each module and
  1133. returns an array with the transformed modules</p>
  1134. <code class="phpdocumentor-code phpdocumentor-signature ">
  1135. <span class="phpdocumentor-signature__visibility">protected</span>
  1136. <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>
  1137. <div class="phpdocumentor-label-line">
  1138. </div>
  1139. <section class="phpdocumentor-description"><p>The transform callback is called with the following parameters:</p>
  1140. <p>$x - current column
  1141. $y - current row
  1142. $M_TYPE - field value
  1143. $M_TYPE_LAYER - (possibly modified) field value that acts as layer id</p>
  1144. </section>
  1145. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1146. <dl class="phpdocumentor-argument-list">
  1147. <dt class="phpdocumentor-argument-list__entry">
  1148. <span class="phpdocumentor-signature__argument__name">$transform</span>
  1149. : <span class="phpdocumentor-signature__argument__return-type"><abbr title="\Closure">Closure</abbr></span>
  1150. </dt>
  1151. <dd class="phpdocumentor-argument-list__definition">
  1152. </dd>
  1153. </dl>
  1154. <section>
  1155. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1156. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1157. </section>
  1158. </article>
  1159. <article
  1160. class="phpdocumentor-element
  1161. -method
  1162. -protected
  1163. "
  1164. >
  1165. <h4 class="phpdocumentor-element__name" id="method_copyVars">
  1166. copyVars()
  1167. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars" class="headerlink"><i class="fas fa-link"></i></a>
  1168. </h4>
  1169. <aside class="phpdocumentor-element-found-in">
  1170. <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>
  1171. :
  1172. <span class="phpdocumentor-element-found-in__line">89</span>
  1173. </aside>
  1174. <p class="phpdocumentor-summary">Creates copies of several QROptions values to avoid calling the magic getters
  1175. in long loops for a significant performance increase.</p>
  1176. <code class="phpdocumentor-code phpdocumentor-signature ">
  1177. <span class="phpdocumentor-signature__visibility">protected</span>
  1178. <span class="phpdocumentor-signature__name">copyVars</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1179. <div class="phpdocumentor-label-line">
  1180. </div>
  1181. <section class="phpdocumentor-description"><p>These variables are usually used in the &quot;module&quot; methods and are called up to 31329 times (at version 40).</p>
  1182. </section>
  1183. </article>
  1184. <article
  1185. class="phpdocumentor-element
  1186. -method
  1187. -protected
  1188. "
  1189. >
  1190. <h4 class="phpdocumentor-element__name" id="method_createImage">
  1191. createImage()
  1192. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage" class="headerlink"><i class="fas fa-link"></i></a>
  1193. </h4>
  1194. <aside class="phpdocumentor-element-found-in">
  1195. <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>
  1196. :
  1197. <span class="phpdocumentor-element-found-in__line">229</span>
  1198. </aside>
  1199. <p class="phpdocumentor-summary">Creates a new GdImage resource and scales it if necessary</p>
  1200. <code class="phpdocumentor-code phpdocumentor-signature ">
  1201. <span class="phpdocumentor-signature__visibility">protected</span>
  1202. <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>
  1203. <div class="phpdocumentor-label-line">
  1204. </div>
  1205. <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>
  1206. </section>
  1207. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1208. Tags
  1209. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1210. </h5>
  1211. <dl class="phpdocumentor-tag-list">
  1212. <dt class="phpdocumentor-tag-list__entry">
  1213. <span class="phpdocumentor-tag__name">see</span>
  1214. </dt>
  1215. <dd class="phpdocumentor-tag-list__definition">
  1216. <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>
  1217. </dd>
  1218. </dl>
  1219. <section>
  1220. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1221. <span class="phpdocumentor-signature__response_type"><abbr title="\GdImage">GdImage</abbr>|resource</span>
  1222. </section>
  1223. </article>
  1224. <article
  1225. class="phpdocumentor-element
  1226. -method
  1227. -protected
  1228. "
  1229. >
  1230. <h4 class="phpdocumentor-element__name" id="method_drawImage">
  1231. drawImage()
  1232. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage" class="headerlink"><i class="fas fa-link"></i></a>
  1233. </h4>
  1234. <aside class="phpdocumentor-element-found-in">
  1235. <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>
  1236. :
  1237. <span class="phpdocumentor-element-found-in__line">280</span>
  1238. </aside>
  1239. <p class="phpdocumentor-summary">Draws the QR image</p>
  1240. <code class="phpdocumentor-code phpdocumentor-signature ">
  1241. <span class="phpdocumentor-signature__visibility">protected</span>
  1242. <span class="phpdocumentor-signature__name">drawImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1243. <div class="phpdocumentor-label-line">
  1244. </div>
  1245. </article>
  1246. <article
  1247. class="phpdocumentor-element
  1248. -method
  1249. -protected
  1250. "
  1251. >
  1252. <h4 class="phpdocumentor-element__name" id="method_dumpImage">
  1253. dumpImage()
  1254. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage" class="headerlink"><i class="fas fa-link"></i></a>
  1255. </h4>
  1256. <aside class="phpdocumentor-element-found-in">
  1257. <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>
  1258. :
  1259. <span class="phpdocumentor-element-found-in__line">327</span>
  1260. </aside>
  1261. <p class="phpdocumentor-summary">Creates the final image by calling the desired GD output function</p>
  1262. <code class="phpdocumentor-code phpdocumentor-signature ">
  1263. <span class="phpdocumentor-signature__visibility">protected</span>
  1264. <span class="phpdocumentor-signature__name">dumpImage</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">string</span></code>
  1265. <div class="phpdocumentor-label-line">
  1266. </div>
  1267. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1268. Tags
  1269. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1270. </h5>
  1271. <dl class="phpdocumentor-tag-list">
  1272. <dt class="phpdocumentor-tag-list__entry">
  1273. <span class="phpdocumentor-tag__name">throws</span>
  1274. </dt>
  1275. <dd class="phpdocumentor-tag-list__definition">
  1276. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1277. </dd>
  1278. </dl>
  1279. <section>
  1280. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1281. <span class="phpdocumentor-signature__response_type">string</span>
  1282. </section>
  1283. </article>
  1284. <article
  1285. class="phpdocumentor-element
  1286. -method
  1287. -protected
  1288. "
  1289. >
  1290. <h4 class="phpdocumentor-element__name" id="method_getDefaultModuleValue">
  1291. getDefaultModuleValue()
  1292. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1293. </h4>
  1294. <aside class="phpdocumentor-element-found-in">
  1295. <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>
  1296. :
  1297. <span class="phpdocumentor-element-found-in__line">164</span>
  1298. </aside>
  1299. <p class="phpdocumentor-summary">Returns a default value for either dark or light modules</p>
  1300. <code class="phpdocumentor-code phpdocumentor-signature ">
  1301. <span class="phpdocumentor-signature__visibility">protected</span>
  1302. <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>
  1303. <div class="phpdocumentor-label-line">
  1304. </div>
  1305. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1306. <dl class="phpdocumentor-argument-list">
  1307. <dt class="phpdocumentor-argument-list__entry">
  1308. <span class="phpdocumentor-signature__argument__name">$isDark</span>
  1309. : <span class="phpdocumentor-signature__argument__return-type">bool</span>
  1310. </dt>
  1311. <dd class="phpdocumentor-argument-list__definition">
  1312. </dd>
  1313. </dl>
  1314. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1315. Tags
  1316. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1317. </h5>
  1318. <dl class="phpdocumentor-tag-list">
  1319. <dt class="phpdocumentor-tag-list__entry">
  1320. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1321. </dt>
  1322. <dd class="phpdocumentor-tag-list__definition">
  1323. </dd>
  1324. </dl>
  1325. <section>
  1326. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1327. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1328. &mdash;
  1329. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  1330. </section>
  1331. </section>
  1332. </article>
  1333. <article
  1334. class="phpdocumentor-element
  1335. -method
  1336. -protected
  1337. "
  1338. >
  1339. <h4 class="phpdocumentor-element__name" id="method_getModuleValue">
  1340. getModuleValue()
  1341. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1342. </h4>
  1343. <aside class="phpdocumentor-element-found-in">
  1344. <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>
  1345. :
  1346. <span class="phpdocumentor-element-found-in__line">152</span>
  1347. </aside>
  1348. <p class="phpdocumentor-summary">Returns the prepared value for the given $M_TYPE</p>
  1349. <code class="phpdocumentor-code phpdocumentor-signature ">
  1350. <span class="phpdocumentor-signature__visibility">protected</span>
  1351. <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</span></code>
  1352. <div class="phpdocumentor-label-line">
  1353. </div>
  1354. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1355. <dl class="phpdocumentor-argument-list">
  1356. <dt class="phpdocumentor-argument-list__entry">
  1357. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1358. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1359. </dt>
  1360. <dd class="phpdocumentor-argument-list__definition">
  1361. </dd>
  1362. </dl>
  1363. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1364. Tags
  1365. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1366. </h5>
  1367. <dl class="phpdocumentor-tag-list">
  1368. <dt class="phpdocumentor-tag-list__entry">
  1369. <span class="phpdocumentor-tag__name">throws</span>
  1370. </dt>
  1371. <dd class="phpdocumentor-tag-list__definition">
  1372. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1373. <section class="phpdocumentor-description"><p>if $moduleValues[$M_TYPE] doesn't exist</p>
  1374. </section>
  1375. </dd>
  1376. </dl>
  1377. <section>
  1378. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1379. <span class="phpdocumentor-signature__response_type">mixed</span>
  1380. &mdash;
  1381. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  1382. </section>
  1383. </section>
  1384. </article>
  1385. <article
  1386. class="phpdocumentor-element
  1387. -method
  1388. -protected
  1389. "
  1390. >
  1391. <h4 class="phpdocumentor-element__name" id="method_getModuleValueAt">
  1392. getModuleValueAt()
  1393. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt" class="headerlink"><i class="fas fa-link"></i></a>
  1394. </h4>
  1395. <aside class="phpdocumentor-element-found-in">
  1396. <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>
  1397. :
  1398. <span class="phpdocumentor-element-found-in__line">166</span>
  1399. </aside>
  1400. <p class="phpdocumentor-summary">Returns the prepared module value at the given coordinate [$x, $y] (convenience)</p>
  1401. <code class="phpdocumentor-code phpdocumentor-signature ">
  1402. <span class="phpdocumentor-signature__visibility">protected</span>
  1403. <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>
  1404. <div class="phpdocumentor-label-line">
  1405. </div>
  1406. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1407. <dl class="phpdocumentor-argument-list">
  1408. <dt class="phpdocumentor-argument-list__entry">
  1409. <span class="phpdocumentor-signature__argument__name">$x</span>
  1410. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1411. </dt>
  1412. <dd class="phpdocumentor-argument-list__definition">
  1413. </dd>
  1414. <dt class="phpdocumentor-argument-list__entry">
  1415. <span class="phpdocumentor-signature__argument__name">$y</span>
  1416. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1417. </dt>
  1418. <dd class="phpdocumentor-argument-list__definition">
  1419. </dd>
  1420. </dl>
  1421. <section>
  1422. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1423. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1424. </section>
  1425. </article>
  1426. <article
  1427. class="phpdocumentor-element
  1428. -method
  1429. -protected
  1430. "
  1431. >
  1432. <h4 class="phpdocumentor-element__name" id="method_getOutputDimensions">
  1433. getOutputDimensions()
  1434. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1435. </h4>
  1436. <aside class="phpdocumentor-element-found-in">
  1437. <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>
  1438. :
  1439. <span class="phpdocumentor-element-found-in__line">123</span>
  1440. </aside>
  1441. <p class="phpdocumentor-summary">Returns a 2 element array with the current output width and height</p>
  1442. <code class="phpdocumentor-code phpdocumentor-signature ">
  1443. <span class="phpdocumentor-signature__visibility">protected</span>
  1444. <span class="phpdocumentor-signature__name">getOutputDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span></code>
  1445. <div class="phpdocumentor-label-line">
  1446. </div>
  1447. <section class="phpdocumentor-description"><p>The type and units of the values depend on the output class. The default value is the current module count * scale.</p>
  1448. </section>
  1449. <section>
  1450. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1451. <span class="phpdocumentor-signature__response_type">array&lt;string|int, mixed&gt;</span>
  1452. </section>
  1453. </article>
  1454. <article
  1455. class="phpdocumentor-element
  1456. -method
  1457. -protected
  1458. "
  1459. >
  1460. <h4 class="phpdocumentor-element__name" id="method_module">
  1461. module()
  1462. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module" class="headerlink"><i class="fas fa-link"></i></a>
  1463. </h4>
  1464. <aside class="phpdocumentor-element-found-in">
  1465. <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>
  1466. :
  1467. <span class="phpdocumentor-element-found-in__line">291</span>
  1468. </aside>
  1469. <p class="phpdocumentor-summary">Creates a single QR pixel with the given settings</p>
  1470. <code class="phpdocumentor-code phpdocumentor-signature ">
  1471. <span class="phpdocumentor-signature__visibility">protected</span>
  1472. <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>
  1473. <div class="phpdocumentor-label-line">
  1474. </div>
  1475. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1476. <dl class="phpdocumentor-argument-list">
  1477. <dt class="phpdocumentor-argument-list__entry">
  1478. <span class="phpdocumentor-signature__argument__name">$x</span>
  1479. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1480. </dt>
  1481. <dd class="phpdocumentor-argument-list__definition">
  1482. </dd>
  1483. <dt class="phpdocumentor-argument-list__entry">
  1484. <span class="phpdocumentor-signature__argument__name">$y</span>
  1485. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1486. </dt>
  1487. <dd class="phpdocumentor-argument-list__definition">
  1488. </dd>
  1489. <dt class="phpdocumentor-argument-list__entry">
  1490. <span class="phpdocumentor-signature__argument__name">$M_TYPE</span>
  1491. : <span class="phpdocumentor-signature__argument__return-type">int</span>
  1492. </dt>
  1493. <dd class="phpdocumentor-argument-list__definition">
  1494. </dd>
  1495. </dl>
  1496. </article>
  1497. <article
  1498. class="phpdocumentor-element
  1499. -method
  1500. -protected
  1501. "
  1502. >
  1503. <h4 class="phpdocumentor-element__name" id="method_prepareModuleValue">
  1504. prepareModuleValue()
  1505. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue" class="headerlink"><i class="fas fa-link"></i></a>
  1506. </h4>
  1507. <aside class="phpdocumentor-element-found-in">
  1508. <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>
  1509. :
  1510. <span class="phpdocumentor-element-found-in__line">139</span>
  1511. </aside>
  1512. <p class="phpdocumentor-summary">Prepares the value for the given input ()</p>
  1513. <code class="phpdocumentor-code phpdocumentor-signature ">
  1514. <span class="phpdocumentor-signature__visibility">protected</span>
  1515. <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>
  1516. <div class="phpdocumentor-label-line">
  1517. </div>
  1518. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1519. <dl class="phpdocumentor-argument-list">
  1520. <dt class="phpdocumentor-argument-list__entry">
  1521. <span class="phpdocumentor-signature__argument__name">$value</span>
  1522. : <span class="phpdocumentor-signature__argument__return-type">array&lt;string|int, mixed&gt;</span>
  1523. </dt>
  1524. <dd class="phpdocumentor-argument-list__definition">
  1525. </dd>
  1526. </dl>
  1527. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1528. Tags
  1529. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1530. </h5>
  1531. <dl class="phpdocumentor-tag-list">
  1532. <dt class="phpdocumentor-tag-list__entry">
  1533. <span class="phpdocumentor-tag__name">inheritDoc</span>
  1534. </dt>
  1535. <dd class="phpdocumentor-tag-list__definition">
  1536. </dd>
  1537. <dt class="phpdocumentor-tag-list__entry">
  1538. <span class="phpdocumentor-tag__name">throws</span>
  1539. </dt>
  1540. <dd class="phpdocumentor-tag-list__definition">
  1541. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1542. </dd>
  1543. </dl>
  1544. <section>
  1545. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1546. <span class="phpdocumentor-signature__response_type">mixed|null</span>
  1547. &mdash;
  1548. <section class="phpdocumentor-description"><p>return value depends on the output class</p>
  1549. </section>
  1550. </section>
  1551. </article>
  1552. <article
  1553. class="phpdocumentor-element
  1554. -method
  1555. -protected
  1556. "
  1557. >
  1558. <h4 class="phpdocumentor-element__name" id="method_saveToFile">
  1559. saveToFile()
  1560. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile" class="headerlink"><i class="fas fa-link"></i></a>
  1561. </h4>
  1562. <aside class="phpdocumentor-element-found-in">
  1563. <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>
  1564. :
  1565. <span class="phpdocumentor-element-found-in__line">201</span>
  1566. </aside>
  1567. <p class="phpdocumentor-summary">Saves the qr $data to a $file. If $file is null, nothing happens.</p>
  1568. <code class="phpdocumentor-code phpdocumentor-signature ">
  1569. <span class="phpdocumentor-signature__visibility">protected</span>
  1570. <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>
  1571. <div class="phpdocumentor-label-line">
  1572. </div>
  1573. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1574. <dl class="phpdocumentor-argument-list">
  1575. <dt class="phpdocumentor-argument-list__entry">
  1576. <span class="phpdocumentor-signature__argument__name">$data</span>
  1577. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1578. </dt>
  1579. <dd class="phpdocumentor-argument-list__definition">
  1580. </dd>
  1581. <dt class="phpdocumentor-argument-list__entry">
  1582. <span class="phpdocumentor-signature__argument__name">$file</span>
  1583. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1584. = <span class="phpdocumentor-signature__argument__default-value">null</span> </dt>
  1585. <dd class="phpdocumentor-argument-list__definition">
  1586. </dd>
  1587. </dl>
  1588. <h5 class="phpdocumentor-tag-list__heading" id="tags">
  1589. Tags
  1590. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile#tags" class="headerlink"><i class="fas fa-link"></i></a>
  1591. </h5>
  1592. <dl class="phpdocumentor-tag-list">
  1593. <dt class="phpdocumentor-tag-list__entry">
  1594. <span class="phpdocumentor-tag__name">see</span>
  1595. </dt>
  1596. <dd class="phpdocumentor-tag-list__definition">
  1597. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\Output\file_put_contents()">file_put_contents()</abbr></span>
  1598. </dd>
  1599. <dt class="phpdocumentor-tag-list__entry">
  1600. <span class="phpdocumentor-tag__name">see</span>
  1601. </dt>
  1602. <dd class="phpdocumentor-tag-list__definition">
  1603. <span class="phpdocumentor-tag-link"><abbr title="\chillerlan\QRCode\QROptions::$cachefile">QROptions::$cachefile</abbr></span>
  1604. </dd>
  1605. <dt class="phpdocumentor-tag-list__entry">
  1606. <span class="phpdocumentor-tag__name">throws</span>
  1607. </dt>
  1608. <dd class="phpdocumentor-tag-list__definition">
  1609. <span class="phpdocumentor-tag-link"><a href="classes/chillerlan-QRCode-Output-QRCodeOutputException.html"><abbr title="\chillerlan\QRCode\Output\QRCodeOutputException">QRCodeOutputException</abbr></a></span>
  1610. </dd>
  1611. </dl>
  1612. </article>
  1613. <article
  1614. class="phpdocumentor-element
  1615. -method
  1616. -protected
  1617. "
  1618. >
  1619. <h4 class="phpdocumentor-element__name" id="method_setBgColor">
  1620. setBgColor()
  1621. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor" class="headerlink"><i class="fas fa-link"></i></a>
  1622. </h4>
  1623. <aside class="phpdocumentor-element-found-in">
  1624. <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>
  1625. :
  1626. <span class="phpdocumentor-element-found-in__line">244</span>
  1627. </aside>
  1628. <p class="phpdocumentor-summary">Sets the background color</p>
  1629. <code class="phpdocumentor-code phpdocumentor-signature ">
  1630. <span class="phpdocumentor-signature__visibility">protected</span>
  1631. <span class="phpdocumentor-signature__name">setBgColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1632. <div class="phpdocumentor-label-line">
  1633. </div>
  1634. </article>
  1635. <article
  1636. class="phpdocumentor-element
  1637. -method
  1638. -protected
  1639. "
  1640. >
  1641. <h4 class="phpdocumentor-element__name" id="method_setMatrixDimensions">
  1642. setMatrixDimensions()
  1643. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions" class="headerlink"><i class="fas fa-link"></i></a>
  1644. </h4>
  1645. <aside class="phpdocumentor-element-found-in">
  1646. <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>
  1647. :
  1648. <span class="phpdocumentor-element-found-in__line">112</span>
  1649. </aside>
  1650. <p class="phpdocumentor-summary">Sets/updates the matrix dimensions</p>
  1651. <code class="phpdocumentor-code phpdocumentor-signature ">
  1652. <span class="phpdocumentor-signature__visibility">protected</span>
  1653. <span class="phpdocumentor-signature__name">setMatrixDimensions</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1654. <div class="phpdocumentor-label-line">
  1655. </div>
  1656. <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>
  1657. </section>
  1658. </article>
  1659. <article
  1660. class="phpdocumentor-element
  1661. -method
  1662. -protected
  1663. "
  1664. >
  1665. <h4 class="phpdocumentor-element__name" id="method_setModuleValues">
  1666. setModuleValues()
  1667. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues" class="headerlink"><i class="fas fa-link"></i></a>
  1668. </h4>
  1669. <aside class="phpdocumentor-element-found-in">
  1670. <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>
  1671. :
  1672. <span class="phpdocumentor-element-found-in__line">130</span>
  1673. </aside>
  1674. <p class="phpdocumentor-summary">Sets the initial module values</p>
  1675. <code class="phpdocumentor-code phpdocumentor-signature ">
  1676. <span class="phpdocumentor-signature__visibility">protected</span>
  1677. <span class="phpdocumentor-signature__name">setModuleValues</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1678. <div class="phpdocumentor-label-line">
  1679. </div>
  1680. </article>
  1681. <article
  1682. class="phpdocumentor-element
  1683. -method
  1684. -protected
  1685. "
  1686. >
  1687. <h4 class="phpdocumentor-element__name" id="method_setTransparencyColor">
  1688. setTransparencyColor()
  1689. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor" class="headerlink"><i class="fas fa-link"></i></a>
  1690. </h4>
  1691. <aside class="phpdocumentor-element-found-in">
  1692. <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>
  1693. :
  1694. <span class="phpdocumentor-element-found-in__line">262</span>
  1695. </aside>
  1696. <p class="phpdocumentor-summary">Sets the transparency color</p>
  1697. <code class="phpdocumentor-code phpdocumentor-signature ">
  1698. <span class="phpdocumentor-signature__visibility">protected</span>
  1699. <span class="phpdocumentor-signature__name">setTransparencyColor</span><span>(</span><span>)</span><span> : </span><span class="phpdocumentor-signature__response_type">void</span></code>
  1700. <div class="phpdocumentor-label-line">
  1701. </div>
  1702. </article>
  1703. <article
  1704. class="phpdocumentor-element
  1705. -method
  1706. -protected
  1707. "
  1708. >
  1709. <h4 class="phpdocumentor-element__name" id="method_toBase64DataURI">
  1710. toBase64DataURI()
  1711. <a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI" class="headerlink"><i class="fas fa-link"></i></a>
  1712. </h4>
  1713. <aside class="phpdocumentor-element-found-in">
  1714. <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>
  1715. :
  1716. <span class="phpdocumentor-element-found-in__line">189</span>
  1717. </aside>
  1718. <p class="phpdocumentor-summary">Returns a base64 data URI for the given string and mime type</p>
  1719. <code class="phpdocumentor-code phpdocumentor-signature ">
  1720. <span class="phpdocumentor-signature__visibility">protected</span>
  1721. <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>
  1722. <div class="phpdocumentor-label-line">
  1723. </div>
  1724. <h5 class="phpdocumentor-argument-list__heading">Parameters</h5>
  1725. <dl class="phpdocumentor-argument-list">
  1726. <dt class="phpdocumentor-argument-list__entry">
  1727. <span class="phpdocumentor-signature__argument__name">$data</span>
  1728. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1729. </dt>
  1730. <dd class="phpdocumentor-argument-list__definition">
  1731. </dd>
  1732. <dt class="phpdocumentor-argument-list__entry">
  1733. <span class="phpdocumentor-signature__argument__name">$mime</span>
  1734. : <span class="phpdocumentor-signature__argument__return-type">string</span>
  1735. </dt>
  1736. <dd class="phpdocumentor-argument-list__definition">
  1737. </dd>
  1738. </dl>
  1739. <section>
  1740. <h5 class="phpdocumentor-return-value__heading">Return values</h5>
  1741. <span class="phpdocumentor-signature__response_type">string</span>
  1742. </section>
  1743. </article>
  1744. </section>
  1745. <div class="phpdocumentor-modal" id="source-view">
  1746. <div class="phpdocumentor-modal-bg" data-exit-button></div>
  1747. <div class="phpdocumentor-modal-container">
  1748. <div class="phpdocumentor-modal-content">
  1749. <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>
  1750. </div>
  1751. <button data-exit-button class="phpdocumentor-modal__close">&times;</button>
  1752. </div>
  1753. </div>
  1754. <script type="text/javascript">
  1755. (function () {
  1756. function loadExternalCodeSnippet(el, url, line) {
  1757. Array.prototype.slice.call(el.querySelectorAll('pre[data-src]')).forEach((pre) => {
  1758. const src = url || pre.getAttribute('data-src').replace(/\\/g, '/');
  1759. const language = 'php';
  1760. const code = document.createElement('code');
  1761. code.className = 'language-' + language;
  1762. pre.textContent = '';
  1763. pre.setAttribute('data-line', line)
  1764. code.textContent = 'Loading…';
  1765. pre.appendChild(code);
  1766. var xhr = new XMLHttpRequest();
  1767. xhr.open('GET', src, true);
  1768. xhr.onreadystatechange = function () {
  1769. if (xhr.readyState !== 4) {
  1770. return;
  1771. }
  1772. if (xhr.status < 400 && xhr.responseText) {
  1773. code.textContent = xhr.responseText;
  1774. Prism.highlightElement(code);
  1775. return;
  1776. }
  1777. if (xhr.status === 404) {
  1778. code.textContent = '✖ Error: File could not be found';
  1779. return;
  1780. }
  1781. if (xhr.status >= 400) {
  1782. code.textContent = '✖ Error ' + xhr.status + ' while fetching file: ' + xhr.statusText;
  1783. return;
  1784. }
  1785. code.textContent = '✖ Error: An unknown error occurred';
  1786. };
  1787. xhr.send(null);
  1788. });
  1789. }
  1790. const modalButtons = document.querySelectorAll("[data-modal]");
  1791. const openedAsLocalFile = window.location.protocol === 'file:';
  1792. if (modalButtons.length > 0 && openedAsLocalFile) {
  1793. console.warn(
  1794. 'Viewing the source code is unavailable because you are opening this page from the file:// scheme; ' +
  1795. 'browsers block XHR requests when a page is opened this way'
  1796. );
  1797. }
  1798. modalButtons.forEach(function (trigger) {
  1799. if (openedAsLocalFile) {
  1800. trigger.setAttribute("hidden", "hidden");
  1801. }
  1802. trigger.addEventListener("click", function (event) {
  1803. event.preventDefault();
  1804. const modal = document.getElementById(trigger.dataset.modal);
  1805. if (!modal) {
  1806. console.error(`Modal with id "${trigger.dataset.modal}" could not be found`);
  1807. return;
  1808. }
  1809. modal.classList.add("phpdocumentor-modal__open");
  1810. loadExternalCodeSnippet(modal, trigger.dataset.src || null, trigger.dataset.line)
  1811. const exits = modal.querySelectorAll("[data-exit-button]");
  1812. exits.forEach(function (exit) {
  1813. exit.addEventListener("click", function (event) {
  1814. event.preventDefault();
  1815. modal.classList.remove("phpdocumentor-modal__open");
  1816. });
  1817. });
  1818. });
  1819. });
  1820. })();
  1821. </script>
  1822. </article>
  1823. </section>
  1824. <section class="phpdocumentor-on-this-page__sidebar">
  1825. <section class="phpdocumentor-on-this-page__content">
  1826. <strong class="phpdocumentor-on-this-page__title">On this page</strong>
  1827. <ul class="phpdocumentor-list -clean">
  1828. <li class="phpdocumentor-on-this-page-section__title">Table Of Contents</li>
  1829. <li>
  1830. <ul class="phpdocumentor-list -clean">
  1831. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-properties">Properties</a></li>
  1832. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#toc-methods">Methods</a></li>
  1833. </ul>
  1834. </li>
  1835. <li class="phpdocumentor-on-this-page-section__title">Properties</li>
  1836. <li>
  1837. <ul class="phpdocumentor-list -clean">
  1838. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_background">$background<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1839. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_circleRadius">$circleRadius<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1840. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_connectPaths">$connectPaths<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1841. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawCircularModules">$drawCircularModules<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1842. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_drawLightModules">$drawLightModules<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1843. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_eol">$eol<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1844. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_excludeFromConnect">$excludeFromConnect<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1845. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_image">$image<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1846. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_keepAsSquare">$keepAsSquare<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1847. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_length">$length<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1848. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_matrix">$matrix<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1849. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleCount">$moduleCount<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1850. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_moduleValues">$moduleValues<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1851. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_options">$options<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1852. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#property_scale">$scale<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1853. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#property_upscaled">$upscaled<a href="classes/chillerlan-QRCode-Output-QRGdImage.html"></li>
  1854. </ul>
  1855. </li>
  1856. <li class="phpdocumentor-on-this-page-section__title">Methods</li>
  1857. <li>
  1858. <ul class="phpdocumentor-list -clean">
  1859. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method___construct">__construct()</a></li>
  1860. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dump">dump()</a></li>
  1861. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_moduleValueIsValid">moduleValueIsValid()</a></li>
  1862. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_checkGD">checkGD()</a></li>
  1863. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_collectModules">collectModules()</a></li>
  1864. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_copyVars">copyVars()</a></li>
  1865. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_createImage">createImage()</a></li>
  1866. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_drawImage">drawImage()</a></li>
  1867. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_dumpImage">dumpImage()</a></li>
  1868. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_getDefaultModuleValue">getDefaultModuleValue()</a></li>
  1869. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValue">getModuleValue()</a></li>
  1870. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getModuleValueAt">getModuleValueAt()</a></li>
  1871. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_getOutputDimensions">getOutputDimensions()</a></li>
  1872. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_module">module()</a></li>
  1873. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_prepareModuleValue">prepareModuleValue()</a></li>
  1874. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_saveToFile">saveToFile()</a></li>
  1875. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setBgColor">setBgColor()</a></li>
  1876. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setMatrixDimensions">setMatrixDimensions()</a></li>
  1877. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_setModuleValues">setModuleValues()</a></li>
  1878. <li><a href="classes/chillerlan-QRCode-Output-QRGdImage.html#method_setTransparencyColor">setTransparencyColor()</a></li>
  1879. <li><a href="classes/chillerlan-QRCode-Output-QROutputAbstract.html#method_toBase64DataURI">toBase64DataURI()</a></li>
  1880. </ul>
  1881. </li>
  1882. </ul>
  1883. </section>
  1884. </section>
  1885. </div>
  1886. <section data-search-results class="phpdocumentor-search-results phpdocumentor-search-results--hidden">
  1887. <section class="phpdocumentor-search-results__dialog">
  1888. <header class="phpdocumentor-search-results__header">
  1889. <h2 class="phpdocumentor-search-results__title">Search results</h2>
  1890. <button class="phpdocumentor-search-results__close"><i class="fas fa-times"></i></button>
  1891. </header>
  1892. <section class="phpdocumentor-search-results__body">
  1893. <ul class="phpdocumentor-search-results__entries"></ul>
  1894. </section>
  1895. </section>
  1896. </section>
  1897. </div>
  1898. <a href="classes/chillerlan-QRCode-Output-QRGdImage.html#top" class="phpdocumentor-back-to-top"><i class="fas fa-chevron-circle-up"></i></a>
  1899. </main>
  1900. <script>
  1901. cssVars({});
  1902. </script>
  1903. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/prism.min.js"></script>
  1904. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/autoloader/prism-autoloader.min.js"></script>
  1905. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-numbers/prism-line-numbers.min.js"></script>
  1906. <script src="https://cdn.jsdelivr.net/npm/prismjs@1.23.0/plugins/line-highlight/prism-line-highlight.min.js"></script>
  1907. </body>
  1908. </html>