mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-11-23 11:22:26 +00:00
:octocat: add logo space creation
This commit is contained in:
@@ -161,6 +161,16 @@ class QRCode{
|
||||
|
||||
$matrix = $dataInterface->writeMatrix($maskPattern);
|
||||
|
||||
// add matrix modifications after mask pattern evaluation and before handing over to output
|
||||
if($this->options->addLogoSpace){
|
||||
$matrix->setLogoSpace(
|
||||
$this->options->logoSpaceWidth,
|
||||
$this->options->logoSpaceHeight,
|
||||
$this->options->logoSpaceStartX,
|
||||
$this->options->logoSpaceStartY
|
||||
);
|
||||
}
|
||||
|
||||
if($this->options->addQuietzone){
|
||||
$matrix->setQuietZone($this->options->quietzoneSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user