mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-26 13:52:36 +00:00
Deploying to readthedocs from @ chillerlan/php-qrcode@376c972de0 🚀
This commit is contained in:
@@ -579,8 +579,8 @@ This method is used internally when a data mode is invoked, but it can come in h
|
||||
<section id="return-the-image-resource">
|
||||
<h3>Return the image resource<a class="headerlink" href="#return-the-image-resource" title="Link to this heading"></a></h3>
|
||||
<p>In some cases you might want to modify the QR image after creation (without crating a custom output class), in which case you want the internal image resource rather than the final output.</p>
|
||||
<div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="nv">$options</span><span class="o">-></span><span class="na">outputType</span> <span class="o">=</span> <span class="nx">QROutputInterface</span><span class="o">::</span><span class="na">IMAGICK</span><span class="p">;</span>
|
||||
<span class="nv">$options</span><span class="o">-></span><span class="na">returnResource</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span>
|
||||
<div class="highlight-php notranslate"><div class="highlight"><pre><span></span><span class="nv">$options</span><span class="o">-></span><span class="na">outputInterface</span> <span class="o">=</span> <span class="nx">QRImagick</span><span class="o">::</span><span class="na">class</span><span class="p">;</span>
|
||||
<span class="nv">$options</span><span class="o">-></span><span class="na">returnResource</span> <span class="o">=</span> <span class="k">true</span><span class="p">;</span>
|
||||
|
||||
<span class="sd">/** @var Imagick $imagick */</span>
|
||||
<span class="nv">$imagick</span> <span class="o">=</span> <span class="nv">$qrcode</span><span class="o">-></span><span class="na">render</span><span class="p">(</span><span class="nv">$data</span><span class="p">);</span>
|
||||
|
||||
@@ -252,8 +252,8 @@ echo $qrcode->render($data);
|
||||
In some cases you might want to modify the QR image after creation (without crating a custom output class), in which case you want the internal image resource rather than the final output.
|
||||
|
||||
```php
|
||||
$options->outputType = QROutputInterface::IMAGICK;
|
||||
$options->returnResource = true;
|
||||
$options->outputInterface = QRImagick::class;
|
||||
$options->returnResource = true;
|
||||
|
||||
/** @var Imagick $imagick */
|
||||
$imagick = $qrcode->render($data);
|
||||
|
||||
+1
-1
@@ -359,7 +359,7 @@
|
||||
|
||||
<section id="chillerlan-php-qrcode-manual">
|
||||
<h1>chillerlan PHP-QRCode Manual<a class="headerlink" href="#chillerlan-php-qrcode-manual" title="Link to this heading"></a></h1>
|
||||
<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a> [main]. Updated on Apr 01, 2025.</p>
|
||||
<p>User manual for <a class="reference external" href="https://github.com/chillerlan/php-qrcode/">chillerlan/php-qrcode</a> [main]. Updated on May 01, 2025.</p>
|
||||
<p>The phpDocumentor API documentation can be found at <a class="reference external" href="https://chillerlan.github.io/php-qrcode/">chillerlan.github.io/php-qrcode</a>.</p>
|
||||
<p>This work is licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.</p>
|
||||
<div class="toctree-wrapper compound">
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user