Class BarcodeRow
java.lang.Object
com.google.zxing.pdf417.encoder.BarcodeRow
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddBar(boolean black, int width) (package private) byte[]getScaledRow(int scale) This function scales the rowprivate voidset(int x, boolean black) Sets a specific location in the bar(package private) voidset(int x, byte value) Sets a specific location in the bar
-
Field Details
-
row
private final byte[] row -
currentLocation
private int currentLocation
-
-
Constructor Details
-
BarcodeRow
BarcodeRow(int width) Creates a Barcode row of the width
-
-
Method Details
-
set
void set(int x, byte value) Sets a specific location in the bar- Parameters:
x- The location in the barvalue- Black if true, white if false;
-
set
private void set(int x, boolean black) Sets a specific location in the bar- Parameters:
x- The location in the barblack- Black if true, white if false;
-
addBar
void addBar(boolean black, int width) - Parameters:
black- A boolean which is true if the bar black false if it is whitewidth- How many spots wide the bar is.
-
getScaledRow
byte[] getScaledRow(int scale) This function scales the row- Parameters:
scale- How much you want the image to be scaled, must be greater than or equal to 1.- Returns:
- the scaled row
-