<h2>Examples</h2>

<hr>

<p><b>Encode a QR Code with data

<verbatim>
    package require tzint
    tzint::Encode xbm myXbmVal {Abc12} -symbol qr -stat myStatVal
</verbatim>

<p>myStatVal will be:</p>

<verbatim>
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
}
</verbatim>

<img


O/LgntzTpOMjfDuhV3tXNcw7IqIBfp1uZpRkgnNv1On+TfP34tPcc22f87Tnivy452i4n+VeoJvH
q/2s0omsEP093h3nE0Eq3+PcLx+V8qUj50PdC36vG3senfQEqm66eTzu7+tTYMH9D6Ad81uAiTll
AAAAAElFTkSuQmCC">

<hr>

<p><b>Encode a Composite Symbol (ISO

<p>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:</p>

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

<img

9Kv83/LerTOV2V7bczwOcS+Oz0LN3wt+gigjytCT95VPlq+EMpV3vnas1dP5GvFInbrvMdPnqtWU
03u3Pnu8n3gEjsyjVRlEGVEGtXK2Ytt6jbZWMcd7qNXE5Z5r1zjb1nz5a6i1cYir50z9XRvbuD4+
fg3eqgyijCjDgwxtq5nrKyQeH8FGmbEqo8AAUYZ+a2VVMvfmx6qMAgNEGfqtlVXM3JsZqzIKDBBl

KIMoI8ogyiDKIMqIMogyiDKIMogyogyiDKIMoowogyiDKIMoI8ogyiDKIMogyogyiDKIMogyogyi
DKIMoowoGwJEGUQZRBlEGVEGUQZRBlFGlEGUQZRBlEGUEWUQZRBlEGVEGUQZRBlEGVEGUQZRBlEG
UUaUQZRBlEGUEWUQZRBlEGVEGUQZRBlEGUSZHzaM49hyd8Pwer0++5ze/q+H2JhcMiZWZRQY0JP3

Pq6EnXW5NlyLI7O4cfFGDzFoWWCUo3bvzO1oT23ynnvmFLf/4BB94t5hDPasyt3meHEFPT6vtQPu

IfPvT1yG8xXXYgU8PWVczWgPMWhQYCgiu60ctp4VTIuNH3un5t12yuNy9oL6LHluVxYb5+W7+Zhc

8XtPz4syPIXPYCDKIMogyrDsH2p7r98wyStbAAAAAElFTkSuQmCC">