com.alecdorrington.qr4s

Members list

Type members

Classlikes

enum Correction(val id: Int, checksByVersion: Vector[Int], blocksByVersion: Vector[Int])

The level of error correction for a QR code.

The level of error correction for a QR code.

Value parameters

blocksByVersion

The number of blocks the codewords are split into, per code size from 1.

checksByVersion

The number of error-correcting codewords in each block, per code size from 1.

id

The 2-bit ID of the error correction level.

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object QrCode

An encoder of text as QrCodes, in byte mode, by ISO/IEC 18004.

An encoder of text as QrCodes, in byte mode, by ISO/IEC 18004.

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
QrCode.type
final case class QrCode(modules: Vector[Vector[Boolean]])

A QR code: a square of dark and light modules. Scanners need a light margin around it, the QrCode.quietZone, which is not part of it.

A QR code: a square of dark and light modules. Scanners need a light margin around it, the QrCode.quietZone, which is not part of it.

Value parameters

modules

Whether each module is dark, row by row from the top, each row from the left.

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all