Package com.google.zxing.qrcode.encoder
Class ByteMatrix
java.lang.Object
com.google.zxing.qrcode.encoder.ByteMatrix
JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned
 -1, 0, and 1, I'm going to use less memory and go with bytes.
- Author:
- dswitkin@google.com (Daniel Switkin)
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
ByteMatrixpublic ByteMatrix(int width, int height) 
 
- 
- 
Method Details- 
getHeightpublic int getHeight()
- 
getWidthpublic int getWidth()
- 
getpublic byte get(int x, int y) 
- 
getArraypublic byte[][] getArray()- Returns:
- an internal representation as bytes, in row-major order. array[y][x] represents point (x,y)
 
- 
setpublic void set(int x, int y, byte value) 
- 
setpublic void set(int x, int y, int value) 
- 
setpublic void set(int x, int y, boolean value) 
- 
clearpublic void clear(byte value) 
- 
toString
 
-