QRCode Builder
Functions
Run a piece of code after the rendering is done.
Background color of the QRCode.
Run a piece of code before the rendering is done.
Color of the cells of the QRCode.
Sets the QRCode.colorFn value to a custom one. If set, the builder will ignore color and background.
Sets the QRCode.shapeFn value to a custom one. If set, the builder will ignore the shape parameter.
The level of error correction to apply to the QR Code. Defaults to ErrorCorrectionLevel.LOW.
Uses a LinearGradientColorFunction to choose colors for the QRCode.
Use a custom QRCodeGraphicsFactory instead of the default. Use this to have a way to better control how and where the QRCode drawing will occur.
The level of "information density" this QRCode will support.
How much space there should be around each QRCode Cell. Defaults to 1 pixel, or 0 if a custom shape function is being used.
Adds extra space around the QRCode.
Which MaskPattern to apply on the QRCode. Mostly for aesthetics. Defaults to MaskPattern.PATTERN000.
Radius of the edges of the Rounded Squares. Only applies for Rounded Squares. If set to a negative number, the default radius will be used.
Changes the Shape of the QRCode.
Size of each individual space in the QRCode (each cell).
Offset drawing the QRCode on the X-axis (horizontal) by this many pixels.
Offset drawing the QRCode on the Y-axis (vertical) by this many pixels.