diff options
Diffstat (limited to 'vendor/chillerlan/php-qrcode/src/Output/QRGdImageBMP.php')
-rw-r--r-- | vendor/chillerlan/php-qrcode/src/Output/QRGdImageBMP.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/vendor/chillerlan/php-qrcode/src/Output/QRGdImageBMP.php b/vendor/chillerlan/php-qrcode/src/Output/QRGdImageBMP.php new file mode 100644 index 000000000..268ebe7c2 --- /dev/null +++ b/vendor/chillerlan/php-qrcode/src/Output/QRGdImageBMP.php @@ -0,0 +1,33 @@ +<?php +/** + * Class QRGdImageBMP + * + * @created 25.10.2023 + * @author smiley <smiley@chillerlan.net> + * @copyright 2023 smiley + * @license MIT + * + * @noinspection PhpComposerExtensionStubsInspection + */ + +namespace chillerlan\QRCode\Output; + +use function imagebmp; + +/** + * GdImage bmp output + * + * @see \imagebmp() + */ +class QRGdImageBMP extends QRGdImage{ + + public const MIME_TYPE = 'image/bmp'; + + /** + * @inheritDoc + */ + protected function renderImage():void{ + imagebmp($this->image, null, ($this->options->quality > 0)); + } + +} |