QRCodeSquare
data class QRCodeSquare( var dark: Boolean, val row: Int, val col: Int, val moduleSize: Int, val squareInfo: QRCodeSquareInfo = QRCodeSquareInfo(DEFAULT, UNKNOWN), val rowSize: Int = 1, val colSize: Int = 1, val parent: QRCodeSquare? = null)(source)
Represents a single QRCode square unit. It has information about its "color" (either dark or bright), its position (row and column) and what it represents.
It can be part of a position probe (aka those big squares at the extremities), part of a position adjustment square, part of a timing pattern or just another square as any other :)
Author
Rafael Lins - g0dkar
Constructors
Link copied to clipboard
constructor( dark: Boolean, row: Int, col: Int, moduleSize: Int, squareInfo: QRCodeSquareInfo = QRCodeSquareInfo(DEFAULT, UNKNOWN), rowSize: Int = 1, colSize: Int = 1, parent: QRCodeSquare? = null)
Properties
Link copied to clipboard
How big is the whole QRCode matrix? (e.g. if this is "16" then this is part of a 16x16 matrix)
Link copied to clipboard
Filled if this square is part of a larger one (like a QRCodeSquareType.POSITION_PROBE)
Link copied to clipboard
What does this square represent within the QRCode?