:octocat: allow reflectance reversal via QROptions::$invertMatrix

This commit is contained in:
smiley
2023-09-08 20:38:15 +02:00
parent 502dd697f5
commit 81ef065af8
2 changed files with 9 additions and 2 deletions
+4
View File
@@ -61,6 +61,10 @@ abstract class QROutputAbstract implements QROutputInterface{
$this->options = $options;
$this->matrix = $matrix;
if($this->options->invertMatrix){
$this->matrix->invert();
}
$this->setMatrixDimensions();
$this->setModuleValues();
}
+5 -2
View File
@@ -157,10 +157,13 @@ trait QROptionsTrait{
*/
protected $bgColor = null;
/**
* Whether to invert the matrix (reflectance reversal)
*/
protected bool $invertMatrix = false;
/**
* Whether to draw the light (false) modules
*
* @var bool
*/
protected bool $drawLightModules = true;