:octocat: add logo space creation

This commit is contained in:
codemasher
2021-12-09 01:10:37 +01:00
parent 1aee1e90ca
commit 87f7f3aa4a
5 changed files with 127 additions and 29 deletions
-9
View File
@@ -16,9 +16,6 @@ use chillerlan\QRCode\Output\{QRCodeOutputException, QRImage};
use function imagecopyresampled, imagecreatefrompng, imagesx, imagesy, is_file, is_readable;
/**
* @property \chillerlan\QRCodeExamples\LogoOptions $options
*/
class QRImageWithLogo extends QRImage{
/**
@@ -38,12 +35,6 @@ class QRImageWithLogo extends QRImage{
throw new QRCodeOutputException('invalid logo');
}
$this->matrix->setLogoSpace(
$this->options->logoSpaceWidth,
$this->options->logoSpaceHeight
// not utilizing the position here
);
// there's no need to save the result of dump() into $this->image here
parent::dump($file);