mirror of
https://github.com/zxing/zxing.git
synced 2025-02-02 05:41:08 -08:00
Few more PDF417 changes
git-svn-id: https://zxing.googlecode.com/svn/trunk@1912 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
a335ff5fb7
commit
7a38f68e52
|
@ -518,11 +518,11 @@ final class PDF417 {
|
|||
private int maxRows;
|
||||
private int minRows;
|
||||
|
||||
public PDF417() {
|
||||
PDF417() {
|
||||
this(false);
|
||||
}
|
||||
|
||||
public PDF417(boolean compact) {
|
||||
PDF417(boolean compact) {
|
||||
this.compact = compact;
|
||||
minCols = 2;
|
||||
maxCols = 30;
|
||||
|
|
|
@ -60,7 +60,7 @@ public final class PDF417Writer implements Writer {
|
|||
/**
|
||||
* Initializes the encoder based on the format (whether it's compact or not)
|
||||
*/
|
||||
private PDF417 initializeEncoder(BarcodeFormat format, boolean compact) {
|
||||
private static PDF417 initializeEncoder(BarcodeFormat format, boolean compact) {
|
||||
if (format != BarcodeFormat.PDF_417) {
|
||||
throw new IllegalArgumentException("Can only encode PDF_417, but got " + format);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public final class PDF417Writer implements Writer {
|
|||
/**
|
||||
* Takes encoder, accounts for width/height, and retrieves bit matrix
|
||||
*/
|
||||
private BitMatrix bitMatrixFromEncoder(PDF417 encoder, String contents, int width, int height)
|
||||
private static BitMatrix bitMatrixFromEncoder(PDF417 encoder, String contents, int width, int height)
|
||||
throws WriterException {
|
||||
int errorCorrectionLevel = 2;
|
||||
encoder.generateBarcodeLogic(contents, errorCorrectionLevel);
|
||||
|
|
Loading…
Reference in a new issue