Return a PNG image representation of barcode (requires GD or Imagick library).
public getBarcodePNG ( $w = 2, $h = 30, $color = [0, 0, 0] ) : image | ||
$w | (int) Width of a single bar element in pixels. | |
$h | (int) Height of a single bar element in pixels. | |
$color | (array) RGB (0-255) foreground color for bar elements (background is transparent). | |
Результат | image | or false in case of error. |