Class MatrixToImageWriter


  • public final class MatrixToImageWriter
    extends Object
    Writes a BitMatrix to BufferedImage, file or stream. Provided here instead of core since it depends on Java SE libraries.
    Author:
    Sean Owen
    • Method Detail

      • toBufferedImage

        public static BufferedImage toBufferedImage​(BitMatrix matrix,
                                                    int fore,
                                                    int back)
        Renders a BitMatrix as an image, where "false" bits are rendered as white, and "true" bits are rendered as black.