QrCode

com.alecdorrington.qr4s.QrCode
See theQrCode companion class
object QrCode

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

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
QrCode.type

Members list

Type members

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror

Value members

Concrete methods

def of(text: String, correction: Correction = ...): Option[QrCode]

Encodes text, as UTF-8, in the smallest code that holds it, under the mask that makes it easiest to read.

Encodes text, as UTF-8, in the smallest code that holds it, under the mask that makes it easiest to read.

Value parameters

correction

The weakest level of error correction to use. A stronger level is used where it fits a code of the same size.

text

The text to encode.

Attributes

Returns

A code, or None when the text is too long for any.

Concrete fields

val quietZone: Int

The width in modules of the light margin scanners need around a code.

The width in modules of the light margin scanners need around a code.

Attributes