string getCodeITFCommand(string text, int option, byte height, int width)
This function can be used to return an ITF barcode command.
Parameters
Name | Description |
text | Text content of the barcode. |
option |
Tells the printer whether to place characters under the printed barcode. This may also be used to line feed after the barcode is printed. 0 = No added characters with line feed 1 = Adds characters with line feed 2 = No added characters without line feed 3 = Adds characters without line feed |
height | Height of the barcode (in pixels). |
width |
Width of the barcode (values range from 0 to 8). See section 3-42 of the STAR Line Mode Command Specifications (Rev 1.12 or later) for more information on the values. 0 = 2_6 1 = 3_9 2 = 4_12 3 = 2_5 4 = 3_8 5 = 4_10 6 = 2_4 7 = 3_6 8 = 4_8 |
Return
A JSON byte array to use as a command.