Uses of Class
org.miaixz.bus.extra.qrcode.QrConfig
Packages that use QrConfig
Package
Description
Provides QR code encapsulation based on the zxing library, with
QrCodeKit as the
entry point.Provides interfaces and implementations for rendering QR codes.
-
Uses of QrConfig in org.miaixz.bus.extra.qrcode
Methods in org.miaixz.bus.extra.qrcode that return QrConfigModifier and TypeMethodDescriptionstatic QrConfigQrConfig.of()Creates a QrConfig.static QrConfigQrConfig.of(int width, int height) Creates a QrConfig.QrConfig.setBackColor(Color backColor) Sets the background color, e.g., Color.BLUE.QrConfig.setCharset(Charset charset) Sets the character encoding.QrConfig.setErrorCorrection(com.google.zxing.qrcode.decoder.ErrorCorrectionLevel errorCorrection) Sets the error correction level.QrConfig.setForeColor(Color foreColor) Sets the foreground color, e.g., Color.BLUE.getRGB().QrConfig.setFormat(com.google.zxing.BarcodeFormat format) Sets the code format, defaults to QR code.QrConfig.setHeight(int height) Sets the height.QrConfig.setImg(byte[] imageBytes) Sets the logo file for the QR code from a byte array.Sets the logo for the QR code.Sets the logo file for the QR code.Sets the logo file for the QR code.QrConfig.setImgRound(double imgRound) Sets the corner radius of the QR code logo, from 0 to 1, as a ratio of width/height.Sets the margin.QrConfig.setQrVersion(Integer qrVersion) Sets the amount of information in the QR code.QrConfig.setRatio(int ratio) Sets the scaling ratio of the logo in the QR code, e.g., 5 means 1/5 of the smaller dimension (width or height).QrConfig.setShapeHint(com.google.zxing.datamatrix.encoder.SymbolShapeHint shapeHint) Sets the symbol shape for DATA_MATRIX.QrConfig.setWidth(int width) Sets the width.Methods in org.miaixz.bus.extra.qrcode with parameters of type QrConfigModifier and TypeMethodDescriptionstatic com.google.zxing.common.BitMatrixQrCodeKit.encode(CharSequence content, QrConfig config) Encodes text content into a barcode or QR codeBitMatrix.static BufferedImageGenerates a QR code or barcode image with custom configuration.static FileGenerates a QR code to a file with custom configuration.static voidQrCodeKit.generate(String content, QrConfig config, String imageType, OutputStream out) Generates a QR code to an output stream with custom configuration.static StringQrCodeKit.generateAsAsciiArt(String content, QrConfig qrConfig) Generates an ASCII Art character representation of a QR code.static StringQrCodeKit.generateAsBase64DataUri(String content, QrConfig qrConfig, String imageType) Generates a Base64 encoded QR code in String format.static StringQrCodeKit.generateAsSvg(String content, QrConfig qrConfig) Generates an SVG vector graphic of a QR code.static byte[]QrCodeKit.generatePng(String content, QrConfig config) Generates a PNG format QR code image as a byte array with custom configuration.static QrEncoderCreates a QrEncoder.static StringQrCodeKit.toAsciiArt(com.google.zxing.common.BitMatrix matrix, QrConfig config) Converts aBitMatrixto an ASCII Art character representation of a QR code.static StringConverts aBitMatrixto an SVG string.Constructors in org.miaixz.bus.extra.qrcode with parameters of type QrConfig -
Uses of QrConfig in org.miaixz.bus.extra.qrcode.render
Constructors in org.miaixz.bus.extra.qrcode.render with parameters of type QrConfigModifierConstructorDescriptionAsciiArtRender(QrConfig config) Constructs anAsciiArtRenderwith the specified QR code configuration.ImageRender(QrConfig config, String imageType) Constructs anImageRenderwith the specified QR code configuration and image type.Constructs anSVGRenderwith the specified QR code configuration.