class-TCPDF2DBarcode

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
Overview

Classes

Interfaces

Exceptions

Functions

Class TCPDF2DBarcode

Package: com\tecnick\tcpdf
Author: Nicola Asuni
Version: 1.0.015
Class:

TCPDF2DBarcode PHP class to creates array representations for 2D barcodes to be used with TCPDF (http://www.tcpdf.org).


Located at shared/tcpdf/tcpdf_barcodes_2d.php
Methods summary
public
# __construct( $code, $type )

This is the class constructor. Return an array representations for 2D barcodes:

  • $arrcode['code'] code to be printed on text label
  • $arrcode['num_rows'] required number of rows
  • $arrcode['num_cols'] required number of columns
  • $arrcode['bcode'][$r][$c] value of the cell is $r row and $c column (0 = transparent, 1 = black)
public array
# getBarcodeArray( )

Return an array representations of barcode.

public
# getBarcodeSVG( $w = 3, $h = 3, $color = 'black' )

Send barcode as SVG image object to the standard output.

public string
# getBarcodeSVGcode( $w = 3, $h = 3, $color = 'black' )

Return a SVG string representation of barcode.

public string
# getBarcodeHTML( $w = 10, $h = 10, $color = 'black' )

Return an HTML representation of barcode.

public
# getBarcodePNG( $w = 3, $h = 3, $color = array(0,0,0) )

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

public image
# getBarcodePngData( $w = 3, $h = 3, $color = array(0,0,0) )

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

public array
# setBarcode( $code, $type )

Set the barcode.

Properties summary
protected boolean $barcode_array

Array representation of barcode.

# false
 

© 2004-2018 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy