Image_Barcode
[ class tree: Image_Barcode ] [ index: Image_Barcode ] [ all elements ]

Class: Image_Barcode_Code39

Source Location: /Image_Barcode-1.1.3/Image/Barcode/Code39.php

Class Overview

PEAR
   |
   --Image_Barcode
      |
      --Image_Barcode_Code39

Image_Barcode_Code39 class


Author(s):

Version:

  • Release: @package_version@

Copyright:

  • 2005 The PHP Group

Methods


Inherited Variables

Inherited Methods

Class: Image_Barcode

Image_Barcode::draw()
Draws a image barcode

Class Details

[line 50]
Image_Barcode_Code39 class

Package which provides a method to create Code39 using GD library.



[ Top ]


Method Detail

Image_Barcode_Code39 (Constructor)   [line 147]

Image_Barcode_Code39 Image_Barcode_Code39( [string $text = ''], [int $wThin = 0], [int $wThick = 0])

Constructor

Parameters:

string   $text     A text that should be in the image barcode
int   $wThin     Width of the thin lines on the barcode
int   $wThick     Width of the thick lines on the barcode

[ Top ]

checkInvalid   [line 300]

bool checkInvalid( string $text)

Check for invalid characters

Parameters:

string   $text     text to be ckecked

[ Top ]

draw   [line 250]

gd_image &draw( string $text, [string $imgtype = 'png'], [bool $noText = false], [int $bHeight = 0])

Send image to the browser; for Image_Barcode compaitbility

Overrides Image_Barcode::draw() (Draws a image barcode)

Parameters:

string   $text     
string   $imgtype     Image type; accepts jpg, png, and gif, but gif only works if you've payed for licensing
bool   $noText     Set to true if you'd like your barcode to be sans text
int   $bHeight     height of the barcode image including text

[ Top ]

plot   [line 171]

resource plot( [bool $noText = false], [int $bHeight = 0])

Make an image resource using the GD image library

Parameters:

bool   $noText     Set to true if you'd like your barcode to be sans text
int   $bHeight     height of the barcode image including text

[ Top ]


Documentation generated on Sat, 24 Mar 2012 06:00:03 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.