class-Com.Tecnick.Barcode.Type

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.

Class Type

Com\Tecnick\Barcode\Type

Barcode Type class

Com\Tecnick\Barcode\Type\Convert
Extended by Com\Tecnick\Barcode\Type

Indirect known subclasses

Com\Tecnick\Barcode\Type\Linear\Codabar, Com\Tecnick\Barcode\Type\Linear\CodeNineThree, Com\Tecnick\Barcode\Type\Linear\CodeThreeNineExt, Com\Tecnick\Barcode\Type\Linear\CodeThreeNineExtCheck, Com\Tecnick\Barcode\Type\Linear\EanEight, Com\Tecnick\Barcode\Type\Linear\EanFive, Com\Tecnick\Barcode\Type\Linear\EanOneThree, Com\Tecnick\Barcode\Type\Linear\EanTwo, Com\Tecnick\Barcode\Type\Linear\Imb, Com\Tecnick\Barcode\Type\Linear\ImbPre, Com\Tecnick\Barcode\Type\Linear\InterleavedTwoOfFive, Com\Tecnick\Barcode\Type\Linear\InterleavedTwoOfFiveCheck, Com\Tecnick\Barcode\Type\Linear\CodeOneOne, Com\Tecnick\Barcode\Type\Linear\KlantIndex, Com\Tecnick\Barcode\Type\Linear\Msi, Com\Tecnick\Barcode\Type\Linear\MsiCheck, Com\Tecnick\Barcode\Type\Linear\Pharma, Com\Tecnick\Barcode\Type\Linear\PharmaTwoTracks, Com\Tecnick\Barcode\Type\Linear\Planet, Com\Tecnick\Barcode\Type\Linear\Postnet, Com\Tecnick\Barcode\Type\Linear\Raw, Com\Tecnick\Barcode\Type\Linear\RoyalMailFourCc, Com\Tecnick\Barcode\Type\Linear\StandardTwoOfFive, Com\Tecnick\Barcode\Type\Linear\CodeOneTwoEight, Com\Tecnick\Barcode\Type\Linear\StandardTwoOfFiveCheck, Com\Tecnick\Barcode\Type\Linear\UpcA, Com\Tecnick\Barcode\Type\Linear\UpcE, Com\Tecnick\Barcode\Type\Square\Datamatrix, Com\Tecnick\Barcode\Type\Square\PdfFourOneSeven, Com\Tecnick\Barcode\Type\Square\PdfFourOneSeven\Compaction, Com\Tecnick\Barcode\Type\Square\PdfFourOneSeven\Sequence, Com\Tecnick\Barcode\Type\Square\QrCode, Com\Tecnick\Barcode\Type\Square\Raw, Com\Tecnick\Barcode\Type\Linear\CodeOneTwoEight\A, Com\Tecnick\Barcode\Type\Linear\CodeOneTwoEight\B, Com\Tecnick\Barcode\Type\Linear\CodeOneTwoEight\C, Com\Tecnick\Barcode\Type\Linear\CodeOneTwoEight\Process, Com\Tecnick\Barcode\Type\Linear\CodeThreeNine, Com\Tecnick\Barcode\Type\Linear\CodeThreeNineCheck
Abstract
Namespace: Com\Tecnick\Barcode
Package: Barcode
Category: Library
Copyright: 2015-2016 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2015-02-21
Link: https://github.com/tecnickcom/tc-lib-barcode
Located at Type.php
Methods summary
public
# __construct( string $code, integer $width = -1, integer $height = -1, string $color = 'black', array $params = array(), array $padding = array(0, 0, 0, 0) )

Initialize a new barcode object

protected
# setParameters( )

Set extra (optional) parameters

abstract protected
# setBars( )

Set the bars array

public
# setSize( integer $width, integer $height, array $padding = array(0, 0, 0, 0) )

Set the size of the barcode to be exported

protected
# setPadding( array $padding )

Set the barcode padding

public
# setColor( string $color )

Set the color of the bars. If the color is transparent or empty it will be set to the default black color.

public
# setBackgroundColor( string $color )

Set the background color

protected Color
# getRgbColorObject( string $color )

Get the RGB Color object for the given color representation

public array
# getArray( )

Get the barcode raw array

public string
# getExtendedCode( )

Get the extended code (code + checksum)

public
# getSvg( )

Get the barcode as SVG image object

public string
# getSvgCode( )

Get the barcode as SVG code

public string
# getHtmlDiv( )

Get an HTML representation of the barcode.

public
# getPng( )

Get Barcode as PNG Image (requires GD or Imagick library)

public string
# getPngData( boolean $imagick = true )

Get the barcode as PNG image (requires GD or Imagick library)

public object
# getPngDataImagick( )

Get the barcode as PNG image (requires Imagick library)

public object
# getGd( )

Get the barcode as GD image object (requires GD library)

public string
# getGrid( string $space_char = '0', string $bar_char = '1' )

Get a raw barcode string representation using characters

public array
# getBarsArray( string $type = 'XYXY' )

Get the array containing all the formatted bars coordinates

Methods inherited from Com\Tecnick\Barcode\Type\Convert
convertDecToHex(), convertHexToDec(), getBarRectXYWH(), getBarRectXYXY(), getGridArray(), getRotatedBarArray(), processBinarySequence()
Properties summary
protected string $type

Barcode type (linear or square)

# ''
protected string $format

Barcode format

# ''
protected array $params

Array containing extra parameters for the specified barcode type

#
protected string $code

Code to convert (barcode content)

# ''
protected string $extcode

Resulting code after applying checksum etc.

# ''
protected integer $ncols

Total number of columns

# 0
protected integer $nrows

Total number of rows

# 1
protected array $bars

Array containing the position and dimensions of each barcode bar (x, y, width, height)

# array()
protected float $width

Barcode width

#
protected float $height

Barcode height

#
protected array $padding

Additional padding to add around the barcode (top, right, bottom, left) in user units. A negative value indicates the multiplication factor for each row or column.

# array('T' => 0, 'R' => 0, 'B' => 0, 'L' => 0)
protected float $width_ratio

Ratio between the barcode width and the number of rows

#
protected float $height_ratio

Ratio between the barcode height and the number of columns

#
protected Color $color_obj

Foreground Color object

#
protected Color $bg_color_obj

Backgorund Color object

#
 

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