Class ITFWriter

    • Field Detail

      • START_PATTERN

        private static final int[] START_PATTERN
      • END_PATTERN

        private static final int[] END_PATTERN
      • PATTERNS

        private static final int[][] PATTERNS
    • Constructor Detail

      • ITFWriter

        public ITFWriter()
    • Method Detail

      • encode

        public boolean[] encode​(java.lang.String contents)
        Description copied from class: OneDimensionalCodeWriter
        Encode the contents to boolean array expression of one-dimensional barcode. Start code and end code should be included in result, and side margins should not be included.
        Specified by:
        encode in class OneDimensionalCodeWriter
        Parameters:
        contents - barcode contents to encode
        Returns:
        a boolean[] of horizontal pixels (false = white, true = black)