| 1 |
<?php |
| 2 |
|
| 3 |
/** |
| 4 |
* Class QRGdImageBMP |
| 5 |
* |
| 6 |
* @created 25.10.2023 |
| 7 |
* @author smiley <smiley@chillerlan.net> |
| 8 |
* @copyright 2023 smiley |
| 9 |
* @license MIT |
| 10 |
* |
| 11 |
* @noinspection PhpComposerExtensionStubsInspection |
| 12 |
*/ |
| 13 |
namespace WCPOS\Vendor\chillerlan\QRCode\Output; |
| 14 |
|
| 15 |
use function imagebmp; |
| 16 |
/** |
| 17 |
* GdImage bmp output |
| 18 |
* |
| 19 |
* @see \imagebmp() |
| 20 |
*/ |
| 21 |
class QRGdImageBMP extends QRGdImage |
| 22 |
{ |
| 23 |
public const MIME_TYPE = 'image/bmp'; |
| 24 |
/** |
| 25 |
* @inheritDoc |
| 26 |
*/ |
| 27 |
protected function renderImage() : void |
| 28 |
{ |
| 29 |
imagebmp($this->image, null, $this->options->quality > 0); |
| 30 |
} |
| 31 |
} |
| 32 |
|