QRGdImageBMP.php 556 B

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