const classqrgen::QrCode
sys::Obj qrgen::QrCode
QrCode
- eachModule
Void eachModule(|Int,Int,Bool f)
Iterate modules for this code.
- encodeStr
static QrCode encodeStr(Str text, QrEcc ecc := QrEcc.medium)
Encode the given string into a new
QrCode
instance.- render
Void render(Graphics g, Float x, Float y, Float w, Float h)
Render this code to the given graphics context at the given offset and size. The current
color
will be used for "dark" modules. The "light" modules will be left transparent.- renderPng
Void renderPng(OutStream out, Float w, Float h)
Render this code to a PNG image.
- size
Int size()
Width and height of this code measured in modules.
- version
Int version()
Version of this code.