Class: C128AObject: Difference between revisions
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
Draws the check-char code. | Draws the check-char code. | ||
*Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres) | *Signature: private function DrawCheckChar($DrawPos,$yPos,$ySize,$xres) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $DrawPos <br/>Drawing position. | |||
** [http://www.php.net/manual/en/language.types.integer.php int ] $yPos <br/>Vertical position. | |||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $ySize <br/>Vertical size. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | *Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>drawing position. @access private | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] | |||
===DrawObject()=== | ===DrawObject()=== | ||
Draws the barcode object. | Draws the barcode object. | ||
*Signature: public function DrawObject($xres) | *Signature: public function DrawObject($xres) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | |||
*Returns: [http://www.php.net/manual/en/language.types.boolean.php bool ]<br/>true in case of success. | |||
===DrawStart()=== | ===DrawStart()=== | ||
Draws the start code. | Draws the start code. | ||
*Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres) | *Signature: private function DrawStart($DrawPos,$yPos,$ySize,$xres) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $DrawPos <br/>Drawing position. | |||
** [http://www.php.net/manual/en/language.types.integer.php int ] $yPos <br/>Vertical position. | |||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $ySize <br/>Vertical size. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | *Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>drawing position. @access private | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] | |||
===DrawStop()=== | ===DrawStop()=== | ||
Draws the stop code. | Draws the stop code. | ||
*Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres) | *Signature: private function DrawStop($DrawPos,$yPos,$ySize,$xres) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $DrawPos <br/>Drawing position. | |||
** [http://www.php.net/manual/en/language.types.integer.php int ] $yPos <br/>Vertical position. | |||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $ySize <br/>Vertical size. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | ** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $ | *Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>drawing position. @access private | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] | |||
===GetBarSize()=== | ===GetBarSize()=== | ||
Returns the bar size. | Returns the bar size. | ||
*Signature: private function GetBarSize($xres,$char) | *Signature: private function GetBarSize($xres,$char) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | |||
** char $char <br/>Character. | |||
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>barcode size. @access private | |||
===GetCharIndex()=== | ===GetCharIndex()=== | ||
Returns the character index. | Returns the character index. | ||
*Signature: private function GetCharIndex($char) | *Signature: private function GetCharIndex($char) | ||
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ] character index or -1 in case of error. | *Parameters: | ||
@access private | ** char $char <br/>character. | ||
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>character index or -1 in case of error. @access private | |||
===GetCheckCharValue()=== | ===GetCheckCharValue()=== | ||
Returns the check-char value. | Returns the check-char value. | ||
*Signature: private function GetCheckCharValue() | *Signature: private function GetCheckCharValue() | ||
*Returns: string. | *Returns: string.@access private | ||
@access private | |||
===GetSize()=== | ===GetSize()=== | ||
Returns barcode size. | Returns barcode size. | ||
*Signature: private function GetSize($xres) | *Signature: private function GetSize($xres) | ||
* | *Parameters: | ||
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution. | |||
Parameters: | *Returns: barcode<br/>size. @access private | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $xres<br/>Horizontal resolution. | |||
===__construct()=== | ===__construct()=== | ||
Class Constructor. | Class Constructor. | ||
*Signature: public function __construct($Width,$Height,$Style,$Value) | *Signature: public function __construct($Width,$Height,$Style,$Value) | ||
Parameters: | *Parameters: | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $Width<br/>Image width in pixels. | ** [http://www.php.net/manual/en/language.types.integer.php int ] $Width <br/>Image width in pixels. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $Height<br/>Image height in pixels. | ** [http://www.php.net/manual/en/language.types.integer.php int ] $Height <br/>Image height in pixels. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $Style<br/>Barcode style. | ** [http://www.php.net/manual/en/language.types.integer.php int ] $Style <br/>Barcode style. | ||
* [http://www.php.net/manual/en/language.types.integer.php int ] $Value<br/>value to print on barcode. | ** [http://www.php.net/manual/en/language.types.integer.php int ] $Value <br/>value to print on barcode. | ||
[[Category:Class Documentation]] | [[Category:Class Documentation]] |
Revision as of 22:42, 16 October 2009
This article desrcibes 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.