Package com.google.zxing.pdf417.encoder
Class BarcodeRow
- java.lang.Object
-
- com.google.zxing.pdf417.encoder.BarcodeRow
-
final class BarcodeRow extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
currentLocation
private byte[]
row
-
Constructor Summary
Constructors Constructor Description BarcodeRow(int width)
Creates a Barcode row of the width
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
addBar(boolean black, int width)
(package private) byte[]
getScaledRow(int scale)
This function scales the rowprivate void
set(int x, boolean black)
Sets a specific location in the bar(package private) void
set(int x, byte value)
Sets a specific location in the bar
-
-
-
Method Detail
-
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
-
-