Class: C39Object: Difference between revisions

From IHRIS Wiki
No edit summary
(Redirected page to Class: C39Object (4.1.12))
 
(15 intermediate revisions by one other user not shown)
Line 1: Line 1:
This article describes the class ''C39Object''.
#REDIRECT [[Class: C39Object (4.1.12)]]
*Extends the class: BarcodeObject.
*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.0-release/annotate/head:/modules/tcpdf/tcpdf/barcode/c39object.php modules/tcpdf/tcpdf/barcode/c39object.php]
*Author: Karim Mribti, Nicola Asuni
 
*Author: Karim Mribti, Nicola Asuni
*Since: 2001-03-25
 
*Since: 2001-03-25
Code 39 Barcode Render Class.<br> Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.  @name BarcodeObject    @license http://www.gnu.org/copyleft/lesser.html LGPL Code 39 Barcode Render Class.<br> Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.  @name BarcodeObject    @license http://www.gnu.org/copyleft/lesser.html LGPL
==Methods==
===DrawObject()===
Draws the barcode object.
*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()===
Draws the start code.
*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 ] $ySize <br/>Vertical size.
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution.
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>drawing position. @access private
===DrawStop()===
Draws the stop code.
*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 ] $ySize <br/>Vertical size.
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution.
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ]<br/>drawing position. @access private
===GetCharIndex()===
Returns the character index.
*Signature: private function GetCharIndex($char)
*Parameters:
** 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
===GetSize()===
Returns barcode size.
*Signature: private function GetSize($xres)
*Parameters:
** [http://www.php.net/manual/en/language.types.integer.php int ] $xres <br/>Horizontal resolution.
*Returns: barcode<br/>size. @access private
===__construct()===
Class Constructor.
*Signature: public function __construct($Width,$Height,$Style,$Value)
*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 ] $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 ] $Value <br/>value to print on barcode.
 
 
[[Category:Class Documentation]]

Latest revision as of 10:41, 18 August 2015