java.lang.Object
org.miaixz.bus.extra.qrcode.render.AsciiArtRender
- All Implemented Interfaces:
BitMatrixRender
ASCII Art renderer.
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionAsciiArtRender(QrConfig config) Constructs anAsciiArtRenderwith the specified QR code configuration. -
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 ASCII Art to the specifiedAppendable.
-
Constructor Details
-
AsciiArtRender
Constructs anAsciiArtRenderwith the specified QR code configuration.- Parameters:
config- 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 ASCII Art to the specifiedAppendable.- Parameters:
matrix- TheBitMatrixrepresenting the QR code.writer- TheAppendableto which the ASCII Art will be written.
-