BitMatrix

Constructors

Link copied to clipboard
constructor(dimension: Int)

Creates an empty square BitMatrix.

constructor(width: Int, height: Int, multiple: Int)

Creates an empty BitMatrix.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val height: Int
Link copied to clipboard

This is useful in detecting a corner of a 'pure' barcode.

Link copied to clipboard
val width: Int

Functions

Link copied to clipboard
fun clear()

Clears all bits (sets to false).

Link copied to clipboard
open override fun clone(): BitMatrix
Link copied to clipboard
open operator override fun equals(o: Any?): Boolean
Link copied to clipboard
fun flip(x: Int, y: Int)

Flips the given bit.

Link copied to clipboard
operator fun get(x: Int, y: Int): Boolean

Gets the requested bit, where true means black.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun set(x: Int, y: Int)

Sets the given bit to true.

Link copied to clipboard
fun setRegion(left: Int, top: Int, width: Int, height: Int)

Sets a square region of the bit matrix to true.

Link copied to clipboard
open override fun toString(): String
fun toString(setString: String, unsetString: String): String
fun toString(setString: String, unsetString: String, lineSeparator: String): String