Bit matrix. * Represents a 2D matrix of bits. In function arguments below, and throughout the common module, x is the column position, and y is the row position. The ordering is always x, y. The origin is at the top-left.
Clears all bits (set to false).
Flips the given bit.
Gets the requested bit, where true means black.
Gets the most bottom right set bit.
This is useful in detecting the enclosing rectangle of a 'pure' barcode.
A fast method to retrieve one row of data from the matrix as a BitArray.
Gets the most top left set bit.
Sets the given bit to true.
Sets a square region of the bit matrix to true.
Sets a row of data from a BitArray.