class

CrImage::Util::QRCode::Code

Inherits Reference / Object

Encoded QR code ready for rendering

Constructors

new(version : Int32, error_correction : ErrorCorrection, matrix : Matrix)
Source

Instance methods

dark?(x : Int32, y : Int32) : Bool

Check if module at position is dark

Source
error_correction
Source
matrix
Source
size

Size of the QR code in modules

Source
to_image(module_size : Int32 = 10, margin : Int32 = 4, foreground : Color::Color = Color::BLACK, background : Color::Color = Color::WHITE) : RGBA

Render to RGBA image

Source
version
Source