|
||||||||||
| 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(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(BitMatrix matrix,
MatrixToImageConfig config)
As toBufferedImage(BitMatrix), but allows customization of the output. |
static void |
writeToFile(BitMatrix matrix,
String format,
File file)
Deprecated. use #writeToPath(BitMatrix, String, Path) |
static void |
writeToFile(BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
Deprecated. use #writeToPath(BitMatrix, String, Path, MatrixToImageConfig) |
static void |
writeToPath(BitMatrix matrix,
String format,
File file)
Writes a BitMatrix to a file with default configuration. |
static void |
writeToPath(BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
As writeToFile(BitMatrix, String, File), but allows customization of the output. |
static void |
writeToStream(BitMatrix matrix,
String format,
OutputStream stream)
Writes a BitMatrix to a stream with default configuration. |
static void |
writeToStream(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(BitMatrix matrix)
BitMatrix as an image, where "false" bits are rendered
as white, and "true" bits are rendered as black. Uses default configuration.
matrix - BitMatrix to write
BufferedImage representation of the input
public static BufferedImage toBufferedImage(BitMatrix matrix,
MatrixToImageConfig config)
toBufferedImage(BitMatrix), but allows customization of the output.
matrix - BitMatrix to writeconfig - output configuration
BufferedImage representation of the input
@Deprecated
public static void writeToFile(BitMatrix matrix,
String format,
File file)
throws IOException
#writeToPath(BitMatrix, String, Path)
matrix - BitMatrix to writeformat - image formatfile - file File to write image to
IOException - if writes to the file fail
public static void writeToPath(BitMatrix matrix,
String format,
File file)
throws IOException
BitMatrix to a file with default configuration.
matrix - BitMatrix to writeformat - image formatfile - file Path to write image to
IOException - if writes to the stream failtoBufferedImage(BitMatrix)
@Deprecated
public static void writeToFile(BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
throws IOException
#writeToPath(BitMatrix, String, Path, MatrixToImageConfig)
matrix - BitMatrix to writeformat - image formatfile - file File to write image toconfig - output configuration
IOException - if writes to the file fail
public static void writeToPath(BitMatrix matrix,
String format,
File file,
MatrixToImageConfig config)
throws IOException
writeToFile(BitMatrix, String, File), but allows customization of the output.
matrix - BitMatrix to writeformat - image formatfile - file Path to write image toconfig - output configuration
IOException - if writes to the file fail
public static void writeToStream(BitMatrix matrix,
String format,
OutputStream stream)
throws IOException
BitMatrix to a stream with default configuration.
matrix - BitMatrix to writeformat - image formatstream - OutputStream to write image to
IOException - if writes to the stream failtoBufferedImage(BitMatrix)
public static void writeToStream(BitMatrix matrix,
String format,
OutputStream stream,
MatrixToImageConfig config)
throws IOException
writeToStream(BitMatrix, String, OutputStream), but allows customization of the output.
matrix - BitMatrix to writeformat - image formatstream - OutputStream to write image toconfig - output configuration
IOException - if writes to the stream fail
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||