public class MatrixToImageWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
static android.graphics.Bitmap |
toBitmap(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 android.graphics.Bitmap |
toBitmap(com.google.zxing.common.BitMatrix matrix,
MatrixToImageConfig config)
As
toBitmap(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. |
public static android.graphics.Bitmap toBitmap(com.google.zxing.common.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 writeBitmap representation of the inputpublic static android.graphics.Bitmap toBitmap(com.google.zxing.common.BitMatrix matrix,
MatrixToImageConfig config)
toBitmap(BitMatrix), but allows customization of the output.matrix - BitMatrix to writeconfig - output configurationBitmap representation of the inputpublic static void writeToFile(com.google.zxing.common.BitMatrix matrix,
String format,
File file)
throws IOException
BitMatrix to a file.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.IOExceptionpublic static void writeToStream(com.google.zxing.common.BitMatrix matrix,
String format,
OutputStream stream)
throws IOException
BitMatrix to a stream.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.IOExceptionCopyright © 2014. All Rights Reserved.