View Source EQRCode (EQRCode v0.2.0)

Simple QR Code Generator written in Elixir with no other dependencies.

Summary

Types

error_correction_level()

@type error_correction_level() :: :l | :m | :q | :h

Functions

encode(bin, error_correction_level \\ :l)

@spec encode(binary(), error_correction_level()) :: EQRCode.Matrix.t()

Encode the binary.

encode(bin, error_correction_level, bits)

@spec encode(binary(), error_correction_level(), bitstring()) :: EQRCode.Matrix.t()

Encode the binary with custom pattern bits.

Only supports version 5.

png(matrix, options \\ [])

See EQRCode.PNG.png/2.

render(matrix)

See EQRCode.Render.render/1.

svg(matrix, options \\ [])

See EQRCode.SVG.svg/2.