render
Renders a QR Code image based on its computed data. This function exists to ease the interop with Java :)
Return
A QRCodeGraphics with the QR Code rendered on it. It can then be saved or manipulated as desired.
Parameters
The size in pixels of each square (cell) in the QR Code. Defaults to 25
.
Amount of space in pixels to add as a margin around the rendered QR Code. Defaults to 0
.
Color to be used for the "bright" parts of the QR Code. In RGBA space. Defaults to white.
Color to be used for the "dark" parts of the QR Code. In RGBA space. Defaults to black.
Color to be used for the "margin" part of the QR Code. In RGBA space. Defaults to white.
See also
Renders a QR Code image based on its computed data.
Tip: for the "traditional look-and-feel" QR Code, set margin equal to cellSize.
Return
A QRCodeGraphics with the QR Code rendered on it. It can then be saved or manipulated as desired.
Parameters
The size in pixels of each square (cell) in the QR Code. Defaults to 25
.
Amount of space in pixels to add as a margin around the rendered QR Code. Defaults to 0
.
The data matrix of the QR Code. Defaults to this.encode().
The QRCodeGraphics where the QRCode will be painted into.
Color to be used for the "bright" parts of the QR Code. In RGBA space. Defaults to white.
Color to be used for the "dark" parts of the QR Code. In RGBA space. Defaults to black.
Color to be used for the "margin" part of the QR Code. In RGBA space. Defaults to white.