Blame view

site/jpgraph/Examples/barcode_ex4.php 352 Bytes
8ec98c9f   Guillaume   MAJ
1
2
3
4
5
6
7
8
9
10
11
12
  <?php
  // ==============================================
  // Output Image using Code Interleaved 2 of 5
  // ==============================================
  require_once ('jpgraph/jpgraph_barcode.php');
  
  $encoder = BarcodeFactory::Create(ENCODING_CODEI25);
  $e = BackendFactory::Create(BACKEND_IMAGE,$encoder);
  $e->SetModuleWidth(2);
  $e->Stroke('1234');
  
  ?>