You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Apply a margin and round block sizes to improve readability
61
-
// Please note that rounding block sizes can result in additional margin
62
-
$qrCode->setRoundBlockSize(true);
63
-
$qrCode->setMargin(10);
61
+
// Round block sizes to improve readability and make the blocks sharper in pixel based outputs (like png).
62
+
// There are three approaches:
63
+
$qrCode->setRoundBlockSize(true, QrCode::ROUND_BLOCK_SIZE_MODE_MARGIN); // The size of the qr code is shrinked, if necessary, but the size of the final image remains unchanged due to additional margin being added (default)
64
+
$qrCode->setRoundBlockSize(true, QrCode::ROUND_BLOCK_SIZE_MODE_ENLARGE); // The size of the qr code and the final image is enlarged, if necessary
65
+
$qrCode->setRoundBlockSize(true, QrCode::ROUND_BLOCK_SIZE_MODE_SHRINK); // The size of the qr code and the final image is shrinked, if necessary
64
66
65
67
// Set additional writer options (SvgWriter example)
0 commit comments