Method | Description | |
---|---|---|
BitMatrix ( int dimension ) : System | ||
BitMatrix ( int width, int height ) : System | ||
Clone ( ) : object |
Clones this instance.
|
|
Equals ( object obj ) : bool |
Determines whether the specified System.Object is equal to this instance.
|
|
GetHashCode ( ) : int |
Returns a hash code for this instance.
|
|
ToString ( ) : String |
Returns a System.String that represents this instance.
|
|
ToString ( String setString, String unsetString ) : String |
Returns a System.String that represents this instance.
|
|
ToString ( String setString, String unsetString, String lineSeparator ) : String |
Returns a System.String that represents this instance.
|
|
clear ( ) : void |
Clears all bits (sets to false).
|
|
flip ( int x, int y ) : void |
Flips the given bit.
|
|
flipWhen ( Func |
flip all of the bits, if shouldBeFlipped is true for the coordinates
|
|
getBottomRightOnBit ( ) : int[] | ||
getEnclosingRectangle ( ) : int[] |
This is useful in detecting the enclosing rectangle of a 'pure' barcode.
|
|
getRow ( int y, |
A fast method to retrieve one row of data from the matrix as a BitArray.
|
|
getTopLeftOnBit ( ) : int[] |
This is useful in detecting a corner of a 'pure' barcode.
|
|
parse ( String stringRepresentation, String setString, String unsetString ) : |
||
rotate180 ( ) : void |
Modifies this {@code BitMatrix} to represent the same but rotated 180 degrees
|
|
setRegion ( int left, int top, int width, int height ) : void |
Sets a square region of the bit matrix to true.
|
|
setRow ( int y, |
Sets the row.
|
|
this ( int x, int y ) : bool |
Gets the requested bit, where true means black.
|
|
xor ( |
Exclusive-or (XOR): Flip the bit in this {@code BitMatrix} if the corresponding mask bit is set.
|
Method | Description | |
---|---|---|
BitMatrix ( int width, int height, int bits ) : System | ||
BitMatrix ( int width, int height, int rowSize, int bits ) : System | ||
buildToString ( String setString, String unsetString, String lineSeparator ) : String |
public BitMatrix ( int width, int height ) : System | ||
width | int | |
height | int | |
return | System |
public Equals ( object obj ) : bool | ||
obj | object | The |
return | bool |
public ToString ( String setString, String unsetString ) : String | ||
setString | String | The set string. |
unsetString | String | The unset string. |
return | String |
public ToString ( String setString, String unsetString, String lineSeparator ) : String | ||
setString | String | The set string. |
unsetString | String | The unset string. |
lineSeparator | String | The line separator. |
return | String |
public flip ( int x, int y ) : void | ||
x | int | The horizontal component (i.e. which column) |
y | int | The vertical component (i.e. which row) |
return | void |
public flipWhen ( Func |
||
shouldBeFlipped | Func |
should return true, if the bit at a given coordinate should be flipped |
return | void |
public getRow ( int y, |
||
y | int | The row to retrieve /// |
row | An optional caller-allocated BitArray, will be allocated if null or too small /// | |
return |
public static parse ( String stringRepresentation, String setString, String unsetString ) : |
||
stringRepresentation | String | |
setString | String | |
unsetString | String | |
return |
public setRegion ( int left, int top, int width, int height ) : void | ||
left | int | The horizontal position to begin at (inclusive) /// |
top | int | The vertical position to begin at (inclusive) /// |
width | int | The width of the region /// |
height | int | The height of the region /// |
return | void |
public setRow ( int y, |
||
y | int | row to set |
row | {@link BitArray} to copy from | |
return | void |
public this ( int x, int y ) : bool | ||
x | int | The horizontal component (i.e. which column) /// |
y | int | The vertical component (i.e. which row) /// |
return | bool |