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

Class: C39Object

Source Location: /tcpdf/barcode/c39object.php

Class Overview

BarcodeObject
   |
   --C39Object

Code 39 Barcode Render Class.
Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.


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 49]
Code 39 Barcode Render Class.
Code 39 is an alphanumeric bar code that can encode decimal number, case alphabet and some special symbols.



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 58]

C39Object __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 DrawObject [line 221]

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 164]

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 195]

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 GetCharIndex [line 116]

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 GetSize [line 131]

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:04 +0200 by phpDocumentor 1.4.0