struct Goban::QR

Overview

Object that represents an encoded QR Code symbol.

Extended Modules

Defined in:

goban/qr.cr
goban/qr/decoder.cr
goban/qr/encoder.cr
goban/qr/mask.cr
goban/qr/template.cr
goban/qr/version.cr

Instance Method Summary

Instance methods inherited from struct Goban::AbstractQR

canvas canvas, ecl ecl, initialize initialize, print_to_console print_to_console, segments segments, size size, version version

Constructor methods inherited from struct Goban::AbstractQR

new new

Instance Method Detail

def canvas : Canvas(UInt8) #

Returns the canvas of the QR Code symbol. Canvas contains information about each single module (pixel) in the symbol.


def ecl : ECC::Level #

Error correction level of the QR Code symbol.


def mask : Mask #

Mask applied to this QR Code symbol.


def segments : Array(Segment) #

Content text segments of the QR Code symbol.


def size : Int32 #

Length of a side in the symbol.


def version : Version #

Version of the QR Code symbol. Version in QR Code does not refer to its revision, but simply indicates the size format of the QR Code symbol.