ext.plantuml.com.google.zxing.client.j2se
Class MatrixToImageWriter
- java.lang.Object
-
- ext.plantuml.com.google.zxing.client.j2se.MatrixToImageWriter
-
public final class MatrixToImageWriter extends java.lang.ObjectWrites aBitMatrixtoBufferedImage, file or stream. Provided here instead of core since it depends on Java SE libraries.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static java.awt.image.BufferedImagetoBufferedImage(BitMatrix matrix)Renders aBitMatrixas an image, where "false" bits are rendered as white, and "true" bits are rendered as black.static voidwriteToFile(BitMatrix matrix, java.lang.String format, java.io.File file)Writes aBitMatrixto a file.static voidwriteToStream(BitMatrix matrix, java.lang.String format, java.io.OutputStream stream)Writes aBitMatrixto a stream.
-
-
-
Method Detail
-
toBufferedImage
public static java.awt.image.BufferedImage toBufferedImage(BitMatrix matrix)
Renders aBitMatrixas an image, where "false" bits are rendered as white, and "true" bits are rendered as black.
-
writeToFile
public static void writeToFile(BitMatrix matrix, java.lang.String format, java.io.File file) throws java.io.IOException
Writes aBitMatrixto a file.- Throws:
java.io.IOException- See Also:
toBufferedImage(BitMatrix)
-
writeToStream
public static void writeToStream(BitMatrix matrix, java.lang.String format, java.io.OutputStream stream) throws java.io.IOException
Writes aBitMatrixto a stream.- Throws:
java.io.IOException- See Also:
toBufferedImage(BitMatrix)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG