TCPDF2DBarcode::getBarcodePngData( $w = 3,  $h = 3,  $color = array(0, 0, 0) )

Return a PNG image representation of barcode (requires GD or Imagick library).


Description Description


Parameters Parameters

$w

(Optional) (int) Width of a single rectangle element in pixels.

Default value: 3

$h

(Optional) (int) Height of a single rectangle element in pixels.

Default value: 3

$color

(Optional) (array) RGB (0-255) foreground color for bar elements (background is transparent).

Default value: array(0, 0, 0)


Top ↑

Return Return

(image) or false in case of error.


Top ↑

Source Source

File: includes/lib/tcpdf/tcpdf_barcodes_2d.php


			

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.