Class: C128AObject: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
*Extends the class: BarcodeObject. | *Extends the class: BarcodeObject. | ||
*Location: Part of the module [[TextLayout Tools Module List#tcpdf|tcpdf]] in the package [https://launchpad.net/textlayout TextLayout Tools] | *Location: Part of the module [[TextLayout Tools Module List#tcpdf|tcpdf]] in the package [https://launchpad.net/textlayout TextLayout Tools] | ||
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0. | *Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.1-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php modules/tcpdf/tcpdf/barcode/c128aobject.php] | ||
*Author: Karim Mribti, Nicola Asuni | *Author: Karim Mribti, Nicola Asuni | ||
Revision as of 15:13, 29 October 2009
This article describes the class C128AObject.
- Extends the class: BarcodeObject.
- Location: Part of the module tcpdf in the package TextLayout Tools
- Source: Defined in the file modules/tcpdf/tcpdf/barcode/c128aobject.php
- Author: Karim Mribti, Nicola Asuni
- Author: Karim Mribti, Nicola Asuni
- Since: 2001-03-25
- Since: 2001-03-25
Code 128-A Barcode Render Class for PHP using the GD graphics library.
Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. @name BarcodeObject @license http://www.gnu.org/copyleft/lesser.html LGPL Code 128-A Barcode Render Class for PHP using the GD graphics library.
Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. @name BarcodeObject @license http://www.gnu.org/copyleft/lesser.html LGPL
Methods
DrawCheckChar()
Draws the check-char code.
- Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres)
- Parameters:
- Returns: int
drawing position. @access private
DrawObject()
Draws the barcode object.
- Signature: public function DrawObject($xres)
- Parameters:
- int $xres
Horizontal resolution.
- int $xres
- Returns: bool
true in case of success.
DrawStart()
Draws the start code.
- Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres)
- Parameters:
- Returns: int
drawing position. @access private
DrawStop()
Draws the stop code.
- Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres)
- Parameters:
- Returns: int
drawing position. @access private
GetBarSize()
Returns the bar size.
- Signature: private function GetBarSize($xres,$char)
- Parameters:
- int $xres
Horizontal resolution. - char $char
Character.
- int $xres
- Returns: int
barcode size. @access private
GetCharIndex()
Returns the character index.
- Signature: private function GetCharIndex($char)
- Parameters:
- char $char
character.
- char $char
- Returns: int
character index or -1 in case of error. @access private
GetCheckCharValue()
Returns the check-char value.
- Signature: private function GetCheckCharValue()
- Returns: string.@access private
GetSize()
Returns barcode size.
- Signature: private function GetSize($xres)
- Parameters:
- int $xres
Horizontal resolution.
- int $xres
- Returns: barcode
size. @access private
__construct()
Class Constructor.