Öffentliche Methoden | |
__construct ($code, $type) | |
getBarcodeArray () | |
getBarcodeSVG ($w=3, $h=3, $color='black') | |
getBarcodeSVGcode ($w=3, $h=3, $color='black') | |
getBarcodeHTML ($w=10, $h=10, $color='black') | |
getBarcodePNG ($w=3, $h=3, $color=array(0, 0, 0)) | |
setBarcode ($code, $type) | |
Geschützte Attribute | |
$barcode_array = false | |
PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).
Definiert in Zeile 50 der Datei tcpdf_barcodes_2d.php.
__construct | ( | $code, | |
$type | |||
) |
This is the class constructor. Return an array representations for 2D barcodes:
$code | (string) code to print |
$type | (string) type of barcode:
|
Definiert in Zeile 68 der Datei tcpdf_barcodes_2d.php.
Benutzt setBarcode().
getBarcodeArray | ( | ) |
Return an array representations of barcode.
Definiert in Zeile 76 der Datei tcpdf_barcodes_2d.php.
Benutzt $barcode_array.
getBarcodeHTML | ( | $w = 10 , |
|
$h = 10 , |
|||
$color = 'black' |
|||
) |
Return an HTML representation of barcode.
$w | (int) Width of a single rectangle element in pixels. |
$h | (int) Height of a single rectangle element in pixels. |
$color | (string) Foreground color for bar elements (background is transparent). |
Definiert in Zeile 144 der Datei tcpdf_barcodes_2d.php.
getBarcodePNG | ( | $w = 3 , |
|
$h = 3 , |
|||
$color = array(0,0,0) |
|||
) |
Return a PNG image representation of barcode (requires GD or Imagick library).
$w | (int) Width of a single rectangle element in pixels. |
$h | (int) Height of a single rectangle element in pixels. |
$color | (array) RGB (0-255) foreground color for bar elements (background is transparent). |
Definiert in Zeile 173 der Datei tcpdf_barcodes_2d.php.
getBarcodeSVG | ( | $w = 3 , |
|
$h = 3 , |
|||
$color = 'black' |
|||
) |
Send barcode as SVG image object to the standard output.
$w | (int) Width of a single rectangle element in user units. |
$h | (int) Height of a single rectangle element in user units. |
$color | (string) Foreground color (in SVG format) for bar elements (background is transparent). |
Definiert in Zeile 87 der Datei tcpdf_barcodes_2d.php.
Benutzt getBarcodeSVGcode().
getBarcodeSVGcode | ( | $w = 3 , |
|
$h = 3 , |
|||
$color = 'black' |
|||
) |
Return a SVG string representation of barcode.
$w | (int) Width of a single rectangle element in user units. |
$h | (int) Height of a single rectangle element in user units. |
$color | (string) Foreground color (in SVG format) for bar elements (background is transparent). |
Definiert in Zeile 108 der Datei tcpdf_barcodes_2d.php.
Wird benutzt von getBarcodeSVG().
setBarcode | ( | $code, | |
$type | |||
) |
Set the barcode.
$code | (string) code to print |
$type | (string) type of barcode:
|
Definiert in Zeile 235 der Datei tcpdf_barcodes_2d.php.
Wird benutzt von __construct().
|
protected |
Array representation of barcode.
Definiert in Zeile 56 der Datei tcpdf_barcodes_2d.php.
Wird benutzt von getBarcodeArray().