| [ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Source view] [Print] [Project Stats]
Barcode Render Class for PHP using the GD graphics library.
| Author: | Karim Mribti, Nicola Asuni |
| License: | http://www.gnu.org/copyleft/lesser.html LGPL |
| Version: | 0.0.8a 2001-04-01 (original code) |
| File Size: | 449 lines (9 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
BarcodeObject:: (16 methods):
__construct()
__destructor()
getImage()
DrawObject()
DrawBorder()
DrawChar()
DrawText()
DrawSingleBar()
GetError()
GetFontHeight()
GetFontWidth()
SetFont()
GetStyle()
SetStyle()
FlushObject()
DestroyObject()
Class: BarcodeObject - X-Ref
Barcode Render Class for PHP using the GD graphics library.| __construct($Width=BCD_DEFAULT_WIDTH, $Height=BCD_DEFAULT_HEIGHT, $Style=BCD_DEFAULT_STYLE) X-Ref |
| Class Constructor. param: int $Width Image width in pixels. param: int $Height Image height in pixels. param: int $Style Barcode style. |
| __destructor() X-Ref |
| Class Destructor. Destroy image object. |
| getImage() X-Ref |
| Returns the image object. author: Nicola Asuni return: object image. |
| DrawObject($xres) X-Ref |
| Abstract method used to draw the barcode image. param: int $xres Horizontal resolution. |
| DrawBorder() X-Ref |
| Draws the barcode border. |
| DrawChar($Font, $xPos, $yPos, $Char) X-Ref |
| Draws the alphanumeric code. param: int $Font Font type. param: int $xPos Horiziontal position. param: int $yPos Vertical position. param: int $Char Alphanumeric code to write. |
| DrawText($Font, $xPos, $yPos, $Char) X-Ref |
| Draws a character string. param: int $Font Font type. param: int $xPos Horiziontal position. param: int $yPos Vertical position. param: int $Char string to write. |
| DrawSingleBar($xPos, $yPos, $xSize, $ySize) X-Ref |
| Draws a single barcode bar. param: int $xPos Horiziontal position. param: int $yPos Vertical position. param: int $xSize Horizontal size. param: int $xSize Vertical size. return: bool trur in case of success, false otherwise. |
| GetError() X-Ref |
| Returns the current error message. return: string error message. |
| GetFontHeight($font) X-Ref |
| Returns the font height. param: int $font font type. return: int font height. |
| GetFontWidth($font) X-Ref |
| Returns the font width. param: int $font font type. return: int font width. |
| SetFont($font) X-Ref |
| Set font type. param: int $font font type. |
| GetStyle() X-Ref |
| Returns barcode style. return: int barcode style. |
| SetStyle($Style) X-Ref |
| Set barcode style. param: int $Style barcode style. |
| FlushObject() X-Ref |
| Flush the barcode image. |
| DestroyObject() X-Ref |
| Destroy the barcode image. |
| Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |