com-tecnick-tcpdf
[ class tree: com-tecnick-tcpdf ] [ index: com-tecnick-tcpdf ] [ all elements ]

Class: C128AObject

Source Location: /tcpdf/barcode/c128aobject.php

Class Overview

BarcodeObject
   |
   --C128AObject

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(s):

  • Karim Mribti, Nicola Asuni

Version:

  • 0.0.8a 2001-04-01 (original code)

Methods


Inherited Variables

Inherited Methods

Class: BarcodeObject

BarcodeObject::__construct()
Class Constructor.
BarcodeObject::DestroyObject()
Destroy the barcode image.
BarcodeObject::DrawBorder()
Draws the barcode border.
BarcodeObject::DrawChar()
Draws the alphanumeric code.
BarcodeObject::DrawObject()
Abstract method used to draw the barcode image.
BarcodeObject::DrawSingleBar()
Draws a single barcode bar.
BarcodeObject::DrawText()
Draws a character string.
BarcodeObject::FlushObject()
Flush the barcode image.
BarcodeObject::GetError()
Returns the current error message.
BarcodeObject::GetFontHeight()
Returns the font height.
BarcodeObject::GetFontWidth()
Returns the font width.
BarcodeObject::getImage()
Returns the image object.
BarcodeObject::GetStyle()
Returns barcode style.
BarcodeObject::SetFont()
Set font type.
BarcodeObject::SetStyle()
Set barcode style.
BarcodeObject::__destructor()
Class Destructor.

Class Details

[line 48]
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.



Tags:

author:  Karim Mribti, Nicola Asuni
version:  0.0.8a 2001-04-01 (original code)
since:  2001-03-25
name:  BarcodeObject
license:  LGPL


[ Top ]


Class Methods


constructor __construct [line 57]

C128AObject __construct( int $Width, int $Height, int $Style, int $Value)

Class Constructor.



Tags:

access:  public


Overrides BarcodeObject::__construct() (Class Constructor.)

Parameters:

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

[ Top ]

method DrawCheckChar [line 332]

int DrawCheckChar( int $DrawPos, int $yPos, int $ySize, int $xres)

Draws the check-char code.



Tags:

return:  drawing position.
access:  private


Parameters:

int   $DrawPos   Drawing position.
int   $yPos   Vertical position.
int   $ySize   Vertical size.
int   $xres   Horizontal resolution.

[ Top ]

method DrawObject [line 351]

bool DrawObject( int $xres)

Draws the barcode object.



Tags:

return:  true in case of success.
access:  public


Overrides BarcodeObject::DrawObject() (Abstract method used to draw the barcode image.)

Parameters:

int   $xres   Horizontal resolution.

[ Top ]

method DrawStart [line 284]

int DrawStart( int $DrawPos, int $yPos, int $ySize, int $xres)

Draws the start code.



Tags:

return:  drawing position.
access:  private


Parameters:

int   $DrawPos   Drawing position.
int   $yPos   Vertical position.
int   $ySize   Vertical size.
int   $xres   Horizontal resolution.

[ Top ]

method DrawStop [line 307]

int DrawStop( int $DrawPos, int $yPos, int $ySize, int $xres)

Draws the stop code.



Tags:

return:  drawing position.
access:  private


Parameters:

int   $DrawPos   Drawing position.
int   $yPos   Vertical position.
int   $ySize   Vertical size.
int   $xres   Horizontal resolution.

[ Top ]

method GetBarSize [line 195]

int GetBarSize( int $xres, char $char)

Returns the bar size.



Tags:

return:  barcode size.
access:  private


Parameters:

int   $xres   Horizontal resolution.
char   $char   Character.

[ Top ]

method GetCharIndex [line 179]

int GetCharIndex( char $char)

Returns the character index.



Tags:

return:  character index or -1 in case of error.
access:  private


Parameters:

char   $char   character.

[ Top ]

method GetCheckCharValue [line 265]

string. GetCheckCharValue( )

Returns the check-char value.



Tags:

access:  private


[ Top ]

method GetSize [line 226]

barcode GetSize( int $xres)

Returns barcode size.



Tags:

return:  size.
access:  private


Parameters:

int   $xres   Horizontal resolution.

[ Top ]


Documentation generated on Wed, 21 May 2008 11:59:05 +0200 by phpDocumentor 1.4.0