chillerlan-QRCode-Output-QRGdImage.html 100 KB

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