chillerlan-QRCode-Output-QRGdImage.html 131 KB

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