Skip to content

Commit

Permalink
EncodeHintType.ERROR_CORRECTION: L
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Dec 2, 2023
1 parent 74bd9b4 commit c2ee92f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public static BufferedImage createBarCode(String content, int width, int height,
protected static BitMatrix createBarCodeImage(String content, BarcodeFormat format, int width, int height) {
Map<EncodeHintType, Object> hints = new HashMap<>();
hints.put(EncodeHintType.CHARACTER_SET, AppUtils.UTF8);
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.H);
hints.put(EncodeHintType.ERROR_CORRECTION, ErrorCorrectionLevel.L); // 高级别导致空白边框???
hints.put(EncodeHintType.MARGIN, 0);

try {
Expand Down

0 comments on commit c2ee92f

Please sign in to comment.