Return an HTML representation of barcode.
public getBarcodeHTML ( $code, $type, $w = 2, $h = 30, $color = 'black' ) : string | ||
$code | (string) code to print | |
$type | (string) type of barcode:
|
|
$w | (int) Width of a single bar element in pixels. | |
$h | (int) Height of a single bar element in pixels. | |
$color | (string) Foreground color for bar elements (background is transparent). | |
Результат | string | HTML code. |