chillerlan-QRCode-Output-QRGdImage.html 126 KB

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