|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.zxing.client.j2se.MatrixToImageWriter
public final class MatrixToImageWriter
Writes a BitMatrix to BufferedImage,
file or stream. Provided here instead of core since it depends on
Java SE libraries.
| Method Summary | |
|---|---|
static BufferedImage |
toBufferedImage(com.google.zxing.common.BitMatrix matrix)
Renders a BitMatrix as an image, where "false" bits are rendered
as white, and "true" bits are rendered as black. |
static BufferedImage |
toBufferedImage(com.google.zxing.common.BitMatrix matrix,
MatrixToImageConfig config)
As toBufferedImage(BitMatrix), but allows customization of the output. |
static void |
writeToFile(com.google.zxing.common.BitMatrix matrix,
String format,
File file)
Writes a BitMatrix to a file. |
static void |
writeToFile(com.google.zxing.common.BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
As writeToFile(BitMatrix, String, File), but allows customization of the output. |
static void |
writeToStream(com.google.zxing.common.BitMatrix matrix,
String format,
OutputStream stream)
Writes a BitMatrix to a stream. |
static void |
writeToStream(com.google.zxing.common.BitMatrix matrix,
String format,
OutputStream stream,
MatrixToImageConfig config)
As writeToStream(BitMatrix, String, OutputStream), but allows customization of the output. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static BufferedImage toBufferedImage(com.google.zxing.common.BitMatrix matrix)
BitMatrix as an image, where "false" bits are rendered
as white, and "true" bits are rendered as black.
public static BufferedImage toBufferedImage(com.google.zxing.common.BitMatrix matrix,
MatrixToImageConfig config)
toBufferedImage(BitMatrix), but allows customization of the output.
public static void writeToFile(com.google.zxing.common.BitMatrix matrix,
String format,
File file)
throws IOException
BitMatrix to a file.
IOExceptiontoBufferedImage(BitMatrix)
public static void writeToFile(com.google.zxing.common.BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
throws IOException
writeToFile(BitMatrix, String, File), but allows customization of the output.
IOException
public static void writeToStream(com.google.zxing.common.BitMatrix matrix,
String format,
OutputStream stream)
throws IOException
BitMatrix to a stream.
IOExceptiontoBufferedImage(BitMatrix)
public static void writeToStream(com.google.zxing.common.BitMatrix matrix,
String format,
OutputStream stream,
MatrixToImageConfig config)
throws IOException
writeToStream(BitMatrix, String, OutputStream), but allows customization of the output.
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||