Class: C128AObject: Difference between revisions
(Created page with 'This article desrcibes the class '''C128AObject'''which extends the class BarcodeObject It is contained in the module tcpdf in the package [https://la…') |
No edit summary |
||
Line 1: | Line 1: | ||
This article desrcibes the class '''C128AObject'''which extends the class BarcodeObject | This article desrcibes the class '''C128AObject''' which extends the class BarcodeObject | ||
It is contained in the module [[iHRIS Module List#tcpdf|tcpdf]] in the package [https://launchpad.net/textlayout TextLayout Tools] | It is contained in the module [[iHRIS Module List#tcpdf|tcpdf]] in the package [https://launchpad.net/textlayout TextLayout Tools] | ||
The class is defined in the file: [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.0-release/files/head:modules/tcpdf/tcpdf/barcode/c128aobject.php modules/tcpdf/tcpdf/barcode/c128aobject.php] | |||
The class is defined in the file: [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.0-release/files/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php modules/tcpdf/tcpdf/barcode/c128aobject.php] | |||
Code 128-A Barcode Render Class for PHP using the GD graphics library.<br> | Code 128-A Barcode Render Class for PHP using the GD graphics library.<br> | ||
Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. | Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. | ||
@author Karim Mribti, Nicola Asuni | @author Karim Mribti, Nicola Asuni | ||
@name BarcodeObject | @name BarcodeObject | ||
@package com.tecnick.tcpdf | @package com.tecnick.tcpdf | ||
@version 0.0.8a 2001-04-01 (original code) | @version 0.0.8a 2001-04-01 (original code) | ||
@since 2001-03-25 | @since 2001-03-25 | ||
@license http://www.gnu.org/copyleft/lesser.html LGPL | @license http://www.gnu.org/copyleft/lesser.html LGPL | ||
Code 128-A Barcode Render Class for PHP using the GD graphics library.<br> | Code 128-A Barcode Render Class for PHP using the GD graphics library.<br> | ||
Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. | Code 128-A is a continuous, multilevel and include all upper case alphanumeric characters and ASCII control characters. | ||
@author Karim Mribti, Nicola Asuni | @author Karim Mribti, Nicola Asuni | ||
@name BarcodeObject | @name BarcodeObject | ||
@package com.tecnick.tcpdf | @package com.tecnick.tcpdf | ||
@version 0.0.8a 2001-04-01 (original code) | @version 0.0.8a 2001-04-01 (original code) | ||
@since 2001-03-25 | @since 2001-03-25 | ||
@license http://www.gnu.org/copyleft/lesser.html LGPL | @license http://www.gnu.org/copyleft/lesser.html LGPL | ||
==Methods== | ==Methods== |
Revision as of 20:21, 16 October 2009
This article desrcibes the class C128AObject which extends the class BarcodeObject It is contained in the module tcpdf in the package TextLayout Tools
The class is defined in the file: modules/tcpdf/tcpdf/barcode/c128aobject.php
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.
@author Karim Mribti, Nicola Asuni
@name BarcodeObject
@package com.tecnick.tcpdf
@version 0.0.8a 2001-04-01 (original code)
@since 2001-03-25
@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.
@author Karim Mribti, Nicola Asuni
@name BarcodeObject
@package com.tecnick.tcpdf
@version 0.0.8a 2001-04-01 (original code)
@since 2001-03-25
@license http://www.gnu.org/copyleft/lesser.html LGPL
Methods
DrawCheckChar()
Draws the check-char code.
- Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres)
- Returns: int drawing position.
@access private Parameters:
- int $DrawPos
Drawing position. - int $yPos
Vertical position. - int $ySize
Vertical size. - int $xres
Horizontal resolution.
DrawObject()
Draws the barcode object.
- Signature: public function DrawObject($xres)
- Returns: bool true in case of success.
Parameters:
- int $xres
Horizontal resolution.
DrawStart()
Draws the start code.
- Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres)
- Returns: int drawing position.
@access private Parameters:
- int $DrawPos
Drawing position. - int $yPos
Vertical position. - int $ySize
Vertical size. - int $xres
Horizontal resolution.
DrawStop()
Draws the stop code.
- Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres)
- Returns: int drawing position.
@access private Parameters:
- int $DrawPos
Drawing position. - int $yPos
Vertical position. - int $ySize
Vertical size. - int $xres
Horizontal resolution.
GetBarSize()
Returns the bar size.
- Signature: private function GetBarSize($xres,$char)
- Returns: int barcode size.
@access private Parameters:
- int $xres
Horizontal resolution. - char $char
Character.
GetCharIndex()
Returns the character index.
- Signature: private function GetCharIndex($char)
- Returns: int character index or -1 in case of error.
@access private Parameters:
- char $char
character.
GetCheckCharValue()
Returns the check-char value.
- Signature: private function GetCheckCharValue()
- Returns: string.
@access private
GetSize()
Returns barcode size.
- Signature: private function GetSize($xres)
- Returns: barcode size.
@access private Parameters:
- int $xres
Horizontal resolution.
__construct()
Class Constructor.
- Signature: public function __construct($Width,$Height,$Style,$Value)
Parameters: