Class: C128AObject: Difference between revisions

From IHRIS Wiki
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.1-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php modules/tcpdf/tcpdf/barcode/c128aobject.php]
*Source: Defined in the file [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L48 modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 48
*Author: Karim Mribti, Nicola Asuni
*Author: Karim Mribti, Nicola Asuni


Line 13: Line 13:
===DrawCheckChar()===
===DrawCheckChar()===
Draws the check-char code.
Draws the check-char code.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L327 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 327
*Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres)
*Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres)
*Parameters:
*Parameters:
Line 22: Line 23:
===DrawObject()===
===DrawObject()===
Draws the barcode object.
Draws the barcode object.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L346 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 346
*Signature: public function DrawObject($xres)
*Signature: public function DrawObject($xres)
*Parameters:
*Parameters:
Line 28: Line 30:
===DrawStart()===
===DrawStart()===
Draws the start code.
Draws the start code.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L279 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 279
*Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres)
*Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres)
*Parameters:
*Parameters:
Line 37: Line 40:
===DrawStop()===
===DrawStop()===
Draws the stop code.
Draws the stop code.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L302 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 302
*Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres)
*Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres)
*Parameters:
*Parameters:
Line 46: Line 50:
===GetBarSize()===
===GetBarSize()===
Returns the bar size.
Returns the bar size.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L190 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 190
*Signature: private function GetBarSize($xres,$char)
*Signature: private function GetBarSize($xres,$char)
*Parameters:
*Parameters:
Line 53: Line 58:
===GetCharIndex()===
===GetCharIndex()===
Returns the character index.
Returns the character index.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L174 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 174
*Signature: private function GetCharIndex($char)
*Signature: private function GetCharIndex($char)
*Parameters:
*Parameters:
Line 59: Line 65:
===GetCheckCharValue()===
===GetCheckCharValue()===
Returns the check-char value.
Returns the check-char value.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L260 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 260
*Signature: private function GetCheckCharValue()
*Signature: private function GetCheckCharValue()
*Returns: string.@access private
*Returns: string.@access private
===GetSize()===
===GetSize()===
Returns barcode size.
Returns barcode size.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L221 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 221
*Signature: private function GetSize($xres)
*Signature: private function GetSize($xres)
*Parameters:
*Parameters:
Line 69: Line 77:
===__construct()===
===__construct()===
Class Constructor.
Class Constructor.
*Defined in [http://bazaar.launchpad.net/~intrahealth+informatics/textlayout/4.0.2-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c128aobject.php#L57 textlayout/modules/tcpdf/tcpdf/barcode/c128aobject.php] on line 57
*Signature: public function __construct($Width,$Height,$Style,$Value)
*Signature: public function __construct($Width,$Height,$Style,$Value)
*Parameters:
*Parameters:

Revision as of 09:48, 10 November 2009

This article describes the class C128AObject.

  • 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.

DrawObject()

Draws the barcode object.

DrawStart()

Draws the start code.

DrawStop()

Draws the stop code.

GetBarSize()

Returns the bar size.

GetCharIndex()

Returns the character index.

GetCheckCharValue()

Returns the check-char value.

GetSize()

Returns barcode size.

__construct()

Class Constructor.