QRCode v2.0.1 QRCode.Placement View Source
A patterns are a non-data element of the QR code that is required by the QR code specification, such as the three finder patterns in the corners of the QR code matrix.
It contains function patterns (finder patterns, timing patterns, separators, alignment patterns) and reserved areas (format information area, version information area).
0,1 ... Endcoding data 2 ... Finders 3 ... Separators 4 ... Alignments 5 ... Reserved areas 6 ... Timing 7 ... Dark module
Link to this section Summary
Link to this section Functions
Link to this function
add_alignments(matrix, version, alignment \\ [[1, 1, 1, 1, 1], [1, 0, 0, 0, 1], [1, 0, 1, 0, 1], [1, 0, 0, 0, 1], [1, 1, 1, 1, 1]])
View Source
add_alignments(matrix, version, alignment \\ [[1, 1, 1, 1, 1], [1, 0, 0, 0, 1], [1, 0, 1, 0, 1], [1, 0, 0, 0, 1], [1, 1, 1, 1, 1]])
View Source
add_alignments(
MatrixReloaded.Matrix.t(),
QRCode.QR.version(),
MatrixReloaded.Matrix.t()
) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
add_alignments( MatrixReloaded.Matrix.t(), QRCode.QR.version(), MatrixReloaded.Matrix.t() ) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_dark_module(matrix, version, val \\ 1)
View Source
add_dark_module(matrix, version, val \\ 1)
View Source
add_dark_module(MatrixReloaded.Matrix.t(), QRCode.QR.version(), pos_integer()) ::
Result.t(String.t(), MatrixReloaded.Matrix.t())
add_dark_module(MatrixReloaded.Matrix.t(), QRCode.QR.version(), pos_integer()) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_finders(matrix, version, finder \\ [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]])
View Source
add_finders(matrix, version, finder \\ [[1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 1, 1, 1, 0, 1], [1, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1]])
View Source
add_finders(
MatrixReloaded.Matrix.t(),
QRCode.QR.version(),
MatrixReloaded.Matrix.t()
) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
add_finders( MatrixReloaded.Matrix.t(), QRCode.QR.version(), MatrixReloaded.Matrix.t() ) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_reserved_areas(matrix, version, val \\ 0)
View Source
add_reserved_areas(matrix, version, val \\ 0)
View Source
add_reserved_areas(
MatrixReloaded.Matrix.t(),
QRCode.QR.version(),
non_neg_integer()
) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
add_reserved_areas( MatrixReloaded.Matrix.t(), QRCode.QR.version(), non_neg_integer() ) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_separators(matrix, version, row \\ [0, 0, 0, 0, 0, 0, 0, 0])
View Source
add_separators(matrix, version, row \\ [0, 0, 0, 0, 0, 0, 0, 0])
View Source
add_separators(
MatrixReloaded.Matrix.t(),
QRCode.QR.version(),
MatrixReloaded.Vector.t()
) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
add_separators( MatrixReloaded.Matrix.t(), QRCode.QR.version(), MatrixReloaded.Vector.t() ) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_timings(matrix, version)
View Source
add_timings(matrix, version)
View Source
add_timings(MatrixReloaded.Matrix.t(), QRCode.QR.version()) ::
Result.t(String.t(), MatrixReloaded.Matrix.t())
add_timings(MatrixReloaded.Matrix.t(), QRCode.QR.version()) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
add_timings(matrix, version, val)
View Source
add_timings(matrix, version, val)
View Source
add_timings(MatrixReloaded.Matrix.t(), QRCode.QR.version(), pos_integer()) ::
Result.t(String.t(), MatrixReloaded.Matrix.t())
add_timings(MatrixReloaded.Matrix.t(), QRCode.QR.version(), pos_integer()) :: Result.t(String.t(), MatrixReloaded.Matrix.t())
Link to this function
put_patterns(qr)
View Source
put_patterns(qr)
View Source
put_patterns(QRCode.QR.t()) :: Result.t(String.t(), QRCode.QR.t())
put_patterns(QRCode.QR.t()) :: Result.t(String.t(), QRCode.QR.t())
Link to this function
replace_placeholders(qr)
View Source
replace_placeholders(qr)
View Source
replace_placeholders(QRCode.QR.t()) :: Result.t(String.t(), QRCode.QR.t())
replace_placeholders(QRCode.QR.t()) :: Result.t(String.t(), QRCode.QR.t())