class-Com.Tecnick.Barcode.Type.Linear.EanTwo

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 EanTwo

Com\Tecnick\Barcode\Type\Linear\EanTwo;

EanTwo Barcode type class EAN 2-Digits UPC-Based Extension

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

Direct known subclasses

Com\Tecnick\Barcode\Type\Linear\EanFive
Namespace: Com\Tecnick\Barcode\Type\Linear
Package: Barcode
Category: Library
Copyright: 2010-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/Linear/EanTwo.php
Methods summary
protected char
# getChecksum( $code )

Calculate checksum

protected
# formatCode( )

Format code

protected
# setBars( )

Get the bars array

Methods inherited from Com\Tecnick\Barcode\Type
__construct(), getArray(), getBarsArray(), getExtendedCode(), getGd(), getGrid(), getHtmlDiv(), getPng(), getPngData(), getPngDataImagick(), getRgbColorObject(), getSvg(), getSvgCode(), setBackgroundColor(), setColor(), setPadding(), setParameters(), setSize()
Methods inherited from Com\Tecnick\Barcode\Type\Convert
convertDecToHex(), convertHexToDec(), getBarRectXYWH(), getBarRectXYXY(), getGridArray(), getRotatedBarArray(), processBinarySequence()
Properties summary
protected string $format

Barcode format

# 'EAN2'
protected integer $code_length

Fixed code length

# 2
protected array $chbar

Map characters to barcodes

# array( 'A' => array( // left odd parity '0'=>'0001101', '1'=>'0011001', '2'=>'0010011', '3'=>'0111101', '4'=>'0100011', '5'=>'0110001', '6'=>'0101111', '7'=>'0111011', '8'=>'0110111', '9'=>'0001011' ), 'B' => array( // left even parity '0'=>'0100111', '1'=>'0110011', '2'=>'0011011', '3'=>'0100001', '4'=>'0011101', '5'=>'0111001', '6'=>'0000101', '7'=>'0010001', '8'=>'0001001', '9'=>'0010111' ) )
protected array $parities

Map parities

# array( '0' => array('A','A'), '1' => array('A','B'), '2' => array('B','A'), '3' => array('B','B') )
Properties inherited from Com\Tecnick\Barcode\Type\Linear
$type
Properties inherited from Com\Tecnick\Barcode\Type
$bars, $bg_color_obj, $code, $color_obj, $extcode, $height, $height_ratio, $ncols, $nrows, $padding, $params, $width, $width_ratio
 

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