Class MatrixToImageWriter


  • public final class MatrixToImageWriter
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.awt.image.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • toBufferedImage

        public static java.awt.image.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.