source: trunk/xgraph/jpgraph/Examples/barcode_ex1.php @ 42

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 386 bytes
Line 
1<?php
2// ==============================================
3// Output Image using Code 128
4// ==============================================
5require_once ('jpgraph/jpgraph_barcode.php');
6
7$encoder = BarcodeFactory::Create(ENCODING_CODE128);
8$e = BackendFactory::Create(BACKEND_PS,$encoder);
9$e->SetModuleWidth(2);
10$e->SetHeight(20);
11echo nl2br($e->Stroke('3125134772'));
12
13
14?>
Note: See TracBrowser for help on using the repository browser.