类 MatrixToImageConfig


  • public final class MatrixToImageConfig
    extends java.lang.Object
    Encapsulates custom configuration used in methods of MatrixToImageWriter.
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static int BLACK  
      static int WHITE  
    • 构造器详细资料

      • MatrixToImageConfig

        public MatrixToImageConfig()
        Creates a default config with on color BLACK and off color WHITE, generating normal black-on-white barcodes.
      • MatrixToImageConfig

        public MatrixToImageConfig​(int onColor,
                                   int offColor)
        参数:
        onColor - pixel on color, specified as an ARGB value as an int
        offColor - pixel off color, specified as an ARGB value as an int
    • 方法详细资料

      • getPixelOnColor

        public int getPixelOnColor()
        返回:
        像素颜色
      • getPixelOffColor

        public int getPixelOffColor()
        返回:
        像素颜色