tzint

examples
Login

Examples


Encode a QR Code with data "Abc12":

    package require tzint
    tzint::Encode xbm myXbmVal {Abc12} -symbol qr -stat myStatVal

myStatVal will be:

zint 2.4.4 error {} rows 21 columns 21 width 42 height 42
myXbmVal will be:
#define symbol_width 42
#define symbol_height 42
static unsigned char symbol_bits[] = {
  0xff, 0x3f, 0xcc, 0xf3, 0xff, 0x03,
  0xff, 0x3f, 0xcc, 0xf3, 0xff, 0x03,
  0x03, 0x30, 0xfc, 0x30, 0x00, 0x03,
  0x03, 0x30, 0xfc, 0x30, 0x00, 0x03,
  0xf3, 0x33, 0xcf, 0x33, 0x3f, 0x03,
  0xf3, 0x33, 0xcf, 0x33, 0x3f, 0x03,
  0xf3, 0x33, 0xcc, 0x30, 0x3f, 0x03,
  0xf3, 0x33, 0xcc, 0x30, 0x3f, 0x03,
  0xf3, 0x33, 0x30, 0x33, 0x3f, 0x03,
  0xf3, 0x33, 0x30, 0x33, 0x3f, 0x03,
  0x03, 0x30, 0x00, 0x33, 0x00, 0x03,
  0x03, 0x30, 0x00, 0x33, 0x00, 0x03,
  0xff, 0x3f, 0x33, 0xf3, 0xff, 0x03,
  0xff, 0x3f, 0x33, 0xf3, 0xff, 0x03,
  0x00, 0x00, 0xcf, 0x03, 0x00, 0x00,
  0x00, 0x00, 0xcf, 0x03, 0x00, 0x00,
  0x3f, 0xff, 0xff, 0x3c, 0x30, 0x00,
  0x3f, 0xff, 0xff, 0x3c, 0x30, 0x00,
  0x3c, 0x0f, 0x03, 0x30, 0xcc, 0x03,
  0x3c, 0x0f, 0x03, 0x30, 0xcc, 0x03,
  0x03, 0xff, 0x30, 0x03, 0xc3, 0x03,
  0x03, 0xff, 0x30, 0x03, 0xc3, 0x03,
  0x0c, 0x0f, 0x3f, 0x30, 0x00, 0x00,
  0x0c, 0x0f, 0x3f, 0x30, 0x00, 0x00,
  0xc0, 0xfc, 0x30, 0x33, 0x03, 0x03,
  0xc0, 0xfc, 0x30, 0x33, 0x03, 0x03,
  0x00, 0x00, 0xcf, 0xcc, 0xcc, 0x00,
  0x00, 0x00, 0xcf, 0xcc, 0xcc, 0x00,
  0xff, 0x3f, 0xc3, 0xfc, 0xcc, 0x03,
  0xff, 0x3f, 0xc3, 0xfc, 0xcc, 0x03,
  0x03, 0x30, 0xcf, 0xcf, 0x0f, 0x00,
  0x03, 0x30, 0xcf, 0xcf, 0x0f, 0x00,
  0xf3, 0x33, 0xc3, 0xfc, 0xcc, 0x03,
  0xf3, 0x33, 0xc3, 0xfc, 0xcc, 0x03,
  0xf3, 0x33, 0x0c, 0xf0, 0xcc, 0x00,
  0xf3, 0x33, 0x0c, 0xf0, 0xcc, 0x00,
  0xf3, 0x33, 0x0f, 0x03, 0x3f, 0x03,
  0xf3, 0x33, 0x0f, 0x03, 0x3f, 0x03,
  0x03, 0x30, 0x0f, 0xf0, 0xcf, 0x00,
  0x03, 0x30, 0x0f, 0xf0, 0xcf, 0x00,
  0xff, 0x3f, 0x33, 0x33, 0xcf, 0x03,
  0xff, 0x3f, 0x33, 0x33, 0xcf, 0x03
}

Encode a Composite Symbol (ISO 24723):

The data to be encoded in the linear component of a composite symbol should be entered into a primary string with the data for the 2D component being entered in the normal way. To do this use the --primary option. For example:

    package require tzint
    tzint::Encode xbm myXbmVal {[99]1234-abcd} -symbol eanx-cc -mode 1 -primary {331234567890}