🛀 fix examples

This commit is contained in:
codemasher
2020-11-22 10:12:20 +01:00
parent d58c2044f1
commit 4aec4d2c3c
10 changed files with 38 additions and 30 deletions
+5 -5
View File
@@ -41,9 +41,9 @@ class QRImageWithLogo extends QRImage{
}
$this->matrix->setLogoSpace(
$this->options->logoWidth,
$this->options->logoHeight
// not utilizing the position here
$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
@@ -56,8 +56,8 @@ class QRImageWithLogo extends QRImage{
$h = imagesy($im);
// set new logo size, leave a border of 1 module
$lw = ($this->options->logoWidth - 2) * $this->options->scale;
$lh = ($this->options->logoHeight - 2) * $this->options->scale;
$lw = ($this->options->logoSpaceWidth - 2) * $this->options->scale;
$lh = ($this->options->logoSpaceHeight - 2) * $this->options->scale;
// get the qrcode size
$ql = $this->matrix->size() * $this->options->scale;