Blame view

site/jpgraph/src/Examples/barcode_ex1.php 372 Bytes
d72ac078   Guillaume   Ajout graphe V1.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  <?php
  // ==============================================
  // Output Image using Code 128
  // ==============================================
  require_once ('jpgraph/jpgraph_barcode.php');
  
  $encoder = BarcodeFactory::Create(ENCODING_CODE128);
  $e = BackendFactory::Create(BACKEND_PS,$encoder);
  $e->SetModuleWidth(2);
  $e->SetHeight(20);
  echo nl2br($e->Stroke('3125134772'));
  
  
  ?>