module

Tsc::Command::Label

Constants

AZTEC = "AZTEC"
BAR = "BAR"
BARCODE = "BARCODE"
BITMAP = "BITMAP"
BLOCK = "BLOCK"
BOX = "BOX"
CIRCLE = "CIRCLE"
CODABLOCK = "CODABLOCK"
DIAGONAL = "DIAGONAL"
DMATRIX = "DMATRIX"
ELLIPSE = "ELLIPSE"
ERASE = "ERASE"
MAXICODE = "MAXICODE"
MPDF417 = "MPDF417"
PDF417 = "PDF417"
PUTBMP = "PUTBMP"
PUTPCX = "PUTPCX"
QRCODE = "QRCODE"
REVERSE = "REVERSE"
RSS = "RSS"
TEXT = "TEXT"
TLC39 = "TLC39"

Instance methods

barcode(x : Int32, y : Int32, code_type : String, height : Int32, human_readable : Int32, rotation : Int32, narrow : Int32, wide : Int32, alignment : Int32, content : String)

This command prints 1D barcodes.

Source
box(x : Int32, y : Int32, x_end : Int32, y_end : Int32, thickness : Int32, radius : Int32 = 0)

This command draws rectangles on the label.

Note:

  • Recommended max thickness of box is 12 mm at 4" width. Thickness of box larger than 12 mm may damage the power supply and affect the print quality. Max. print ratio is different for each printer model. Desktop and industrial printer print ratio is limited to 20% and 30% respectively.
Source
text(x : Int32, y : Int32, font : String, rotation : Int32, x_multiplication : Int32, y_multiplication : Int32, alignment : Int32, content : String)

This command prints text on the label.

Source