java.lang.Object
org.miaixz.bus.extra.qrcode.render.SVGRender
- All Implemented Interfaces:
BitMatrixRender
SVG renderer for QR codes.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrender(com.google.zxing.common.BitMatrix matrix, OutputStream out) Renders the givenBitMatrixto the specifiedOutputStream.voidrender(com.google.zxing.common.BitMatrix matrix, Appendable writer) Renders the givenBitMatrixas SVG to the specifiedAppendable.
-
Constructor Details
-
SVGRender
Constructs anSVGRenderwith the specified QR code configuration.- Parameters:
qrConfig- The QR code configuration.
-
-
Method Details
-
render
Description copied from interface:BitMatrixRenderRenders the givenBitMatrixto the specifiedOutputStream.- Specified by:
renderin interfaceBitMatrixRender- Parameters:
matrix- TheBitMatrixto render.out- TheOutputStreamto write the rendered output to.
-
render
Renders the givenBitMatrixas SVG to the specifiedAppendable.- Parameters:
matrix- TheBitMatrixrepresenting the QR code.writer- TheAppendableto which the SVG will be written.- Throws:
org.miaixz.bus.core.lang.exception.InternalException- if anIOExceptionoccurs during writing.
-