Documentation of 'ext.plantuml.com.google.zxing.client.j2se.MatrixToImageWriter' Java class
MatrixToImageWriter
ext.plantuml.com.google.zxing.client.j2se

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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.awt.image.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 void writeToFile(BitMatrix matrix, java.lang.String format, java.io.File file)
      Writes a BitMatrix to a file.
      static void writeToStream(BitMatrix matrix, java.lang.String format, java.io.OutputStream stream)
      Writes a BitMatrix to a stream.
      • Methods inherited from class java.lang.Object

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

      • toBufferedImage

        public static java.awt.image.BufferedImage toBufferedImage(BitMatrix matrix)
        Renders a BitMatrix as an image, where "false" bits are rendered as white, and "true" bits are rendered as black.
      • writeToFile

        public static void writeToFile(BitMatrix matrix,
                                       java.lang.String format,
                                       java.io.File file)
                                throws java.io.IOException
        Writes a BitMatrix to a file.
        Throws:
        java.io.IOException
        See Also:
        toBufferedImage(BitMatrix)
      • writeToStream

        public static void writeToStream(BitMatrix matrix,
                                         java.lang.String format,
                                         java.io.OutputStream stream)
                                  throws java.io.IOException
        Writes a BitMatrix to a stream.
        Throws:
        java.io.IOException
        See Also:
        toBufferedImage(BitMatrix)

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.