We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cb5ea1f commit a7f332dCopy full SHA for a7f332d
examples/spring-web/src/main/kotlin/io/github/g0dkar/qrcode/springWebExample/QRCodeService.kt
@@ -14,13 +14,11 @@ class QRCodeService {
14
spacing: Int? = null,
15
shape: QRCodeShapesEnum = SQUARE,
16
ecl: ErrorCorrectionLevel = MEDIUM,
17
- informationDensity: Int = 6,
18
- forceInformationDensity: Boolean = false,
+ informationDensity: Int = 0,
19
): ByteArray =
20
QRCodeBuilder(shape)
21
.withErrorCorrectionLevel(ecl)
22
.withInformationDensity(informationDensity)
23
- .forceInformationDensity(forceInformationDensity) // Must be AFTER withInformationDensity()
24
.also {
25
if (spacing != null && spacing >= 0) {
26
it.withInnerSpacing(spacing)
0 commit comments