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.


[View source]
def ecl : ECC::Level #

Error correction level of the QR Code symbol.


[View source]
def mask : Mask #

Mask applied to this QR Code symbol.


[View source]
def segments : Array(Segment) #

Content text segments of the QR Code symbol.


[View source]
def size : Int32 #

Length of a side in the symbol.


[View source]
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.


[View source]