"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "core/src/main/java/com/google/zxing/pdf417/encoder/BarcodeMatrix.java" between
zxing-zxing-3.4.1.tar.gz and zxing-zxing-3.5.0.tar.gz

About: ZXing ("zebra crossing") is a multi-format 1D/2D barcode image processing library implemented in Java, with ports to other languages. Info: Project is in maintenance mode (no active development).

BarcodeMatrix.java  (zxing-zxing-3.4.1):BarcodeMatrix.java  (zxing-zxing-3.5.0)
skipping to change at line 50 skipping to change at line 50
} }
this.width = width * 17; this.width = width * 17;
this.height = height; this.height = height;
this.currentRow = -1; this.currentRow = -1;
} }
void set(int x, int y, byte value) { void set(int x, int y, byte value) {
matrix[y].set(x, value); matrix[y].set(x, value);
} }
/*
void setMatrix(int x, int y, boolean black) {
set(x, y, (byte) (black ? 1 : 0));
}
*/
void startRow() { void startRow() {
++currentRow; ++currentRow;
} }
BarcodeRow getCurrentRow() { BarcodeRow getCurrentRow() {
return matrix[currentRow]; return matrix[currentRow];
} }
public byte[][] getMatrix() { public byte[][] getMatrix() {
return getScaledMatrix(1, 1); return getScaledMatrix(1, 1);
} }
/*
public byte[][] getScaledMatrix(int scale) {
return getScaledMatrix(scale, scale);
}
*/
public byte[][] getScaledMatrix(int xScale, int yScale) { public byte[][] getScaledMatrix(int xScale, int yScale) {
byte[][] matrixOut = new byte[height * yScale][width * xScale]; byte[][] matrixOut = new byte[height * yScale][width * xScale];
int yMax = height * yScale; int yMax = height * yScale;
for (int i = 0; i < yMax; i++) { for (int i = 0; i < yMax; i++) {
matrixOut[yMax - i - 1] = matrix[i / yScale].getScaledRow(xScale); matrixOut[yMax - i - 1] = matrix[i / yScale].getScaledRow(xScale);
} }
return matrixOut; return matrixOut;
} }
} }
 End of changes. 2 change blocks. 
12 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)