Terms of Service
|
Privacy Policy
|
Cookie Policy
Skip to content
GitLab
Explore
Sign in
Commits on Source (2)
Added encoding hints to encoding call
· be67042b
Uwe Plonus
authored
Mar 23, 2019
be67042b
Merge branch 'master' of git.sw4j.net:sw4j-org/random-barcode
· 2e44aeaf
Uwe Plonus
authored
Mar 26, 2019
2e44aeaf
Show whitespace changes
Inline
Side-by-side
src/main/java/org/sw4j/tool/barcode/random/generator/BarcodeWriter.java
View file @
2e44aeaf
...
...
@@ -102,7 +102,7 @@ public class BarcodeWriter implements Consumer<RandomIdent> {
encodingParameters
.
put
(
EncodeHintType
.
CHARACTER_SET
,
"utf-8"
);
setErrorCorrection
(
encodingParameters
);
BitMatrix
matrix
=
codeWriter
.
encode
(
codeUrl
,
codeType
.
getFormat
(),
codeConfig
.
getWidth
(),
codeConfig
.
getHeight
());
codeConfig
.
getHeight
()
,
encodingParameters
);
MatrixToImageWriter
.
writeToStream
(
matrix
,
codeConfig
.
getFiletype
(),
os
);
}
catch
(
IOException
|
WriterException
exc
)
{
logger
.
log
(
Level
.
WARNING
,
...
...