Преглед изворни кода

:octocat: use the same settings as the SVG "melt" example for direct comparison

smiley пре 2 година
родитељ
комит
8744848a20
1 измењених фајлова са 9 додато и 6 уклоњено
  1. 9 6
      examples/pngWithRoundedShapes.php

+ 9 - 6
examples/pngWithRoundedShapes.php

@@ -135,12 +135,15 @@ class QRGdRounded extends QRGdImage{
 // --------------------
 // --------------------
 
 
 $options = new QROptions([
 $options = new QROptions([
-    'outputType'       => QROutputInterface::CUSTOM,
-    'outputInterface'  => QRGdRounded::class,
-    'eccLevel'         => EccLevel::M,
-    'imageTransparent' => false,
-    'outputBase64'     => false,
-    'scale'            => 30,
+    'version'         => 7,
+    'eccLevel'        => EccLevel::H,
+    'outputType'      => QROutputInterface::CUSTOM,
+    'outputInterface' => QRGdRounded::class,
+    'outputBase64'    => false,
+    'scale'           => 30,
+    'addLogoSpace'    => true,
+    'logoSpaceWidth'  => 13,
+    'logoSpaceHeight' => 13,
 ]);
 ]);