| Line | |
|---|
| 1 | <?php
|
|---|
| 2 | // ==============================================
|
|---|
| 3 | // Output Image using Code 39 using only default values
|
|---|
| 4 | // ==============================================
|
|---|
| 5 | require_once ('jpgraph/jpgraph_barcode.php');
|
|---|
| 6 |
|
|---|
| 7 | try {
|
|---|
| 8 | $encoder = BarcodeFactory::Create(ENCODING_CODE39);
|
|---|
| 9 | $e = BackendFactory::Create(BACKEND_IMAGE,$encoder);
|
|---|
| 10 | $e->Stroke('abc123');
|
|---|
| 11 | } catch( JpGraphException $e ) {
|
|---|
| 12 | //echo 'Error: ' . $e->getMessage()."\n";
|
|---|
| 13 | JpGraphError::Raise($e->getMessage());
|
|---|
| 14 | }
|
|---|
| 15 |
|
|---|
| 16 | ?>
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.