Class: I25Object: Difference between revisions

From IHRIS Wiki
No edit summary
No edit summary
Line 1: Line 1:
This article desrcibes the class '''I25Object''' which extends the class BarcodeObject
This article desrcibes the class '''I25Object'''.
*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]


Line 22: Line 23:
Draws the barcode object.
Draws the barcode object.
*Signature: public function DrawObject($xres)
*Signature: public function DrawObject($xres)
*Returns: [http://www.php.net/manual/en/language.types.boolean.php bool] true in case of success.
*Returns: [http://www.php.net/manual/en/language.types.boolean.php bool ] true in case of success.
Parameters:
Parameters:
* [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 ] $xres<br/>Horizontal resolution.
===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)
*Returns: [http://www.php.net/manual/en/language.types.integer.php int] drawing position.
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ] drawing position.
@access private
@access private
Parameters:
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 ] $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 ] $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 ] $ySize<br/>Vertical size.
* [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 ] $xres<br/>Horizontal resolution.
===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)
*Returns: [http://www.php.net/manual/en/language.types.integer.php int] drawing position.
*Returns: [http://www.php.net/manual/en/language.types.integer.php int ] drawing position.
@access private
@access private
Parameters:
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 ] $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 ] $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 ] $ySize<br/>Vertical size.
* [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 ] $xres<br/>Horizontal resolution.
===GetSize()===
===GetSize()===
Returns barcode size.
Returns barcode size.
Line 51: Line 52:
@access private
@access private
Parameters:
Parameters:
* [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 ] $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 21:27, 16 October 2009

This article desrcibes the class I25Object.

  • 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/i25object.php

I25 Barcode Render Class for PHP using the GD graphics library.<br< Interleaved 2 of 5 is a numeric only bar code with a optional check number. @name BarcodeObject @license http://www.gnu.org/copyleft/lesser.html LGPL I25 Barcode Render Class for PHP using the GD graphics library.<br< Interleaved 2 of 5 is a numeric only bar code with a optional check number. @name BarcodeObject @license http://www.gnu.org/copyleft/lesser.html LGPL

  • Author: Karim Mribti, Nicola Asuni
  • Author: Karim Mribti, Nicola Asuni
  • Since: 2001-03-25
  • Since: 2001-03-25

Methods

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.

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:

  • int $Width
    Image width in pixels.
  • int $Height
    Image height in pixels.
  • int $Style
    Barcode style.
  • int $Value
    value to print on barcode.